- Katılım
- 6 Mayıs 2022
- Mesajlar
- 45,967
Eminim SQL 2008'e Geçince Bu Hatadan Almışşsınızdır Yada Başka Database Denerken.
Bunun 2 Sebebi Vardır 1.Databasede Rules Kısmında Türkçe Karakter Engelleme Yada CREATE_NEW_CHAR Prosedüründendir.
Bunu Düzeltmek İçin
Bu Kodu Query'e Yapıştırıp F5 Basmanız Yeterlidir.
Knight Online Private Server Oluşturma Sürecinde 'Failed Creating Database' Hatası Nedir?
Knight Online özel sunucuları (pserver) oluştururken geliştiricilerin karşılaştığı yaygın sorunlardan birisi 'Failed Creating Database' hatasıdır. Bu hata, genellikle veritabanı bağlantısı ya da yapılandırmasıyla ilgili sorunları belirtir. Özellikle KO Development (kodev), USKO, ROFD veya başka bir emulator kullanıyor olabilirsiniz; ancak veritabanı ayarlarında eksiklik veya hatalı yapılandırma bu hatayı tetikler. Bu yazıda bu hatayı detaylı olarak ele alacağız.
Knight Online Veritabanı Nedir?
Knight Online özel sunucularında veritabanı, oyuncu verileri, envanter içerikleri, eşyalar, seviye bilgileri gibi tüm verileri barındıran merkezi yapıdır. Genellikle SQL tabanlı veritabanları kullanılır. Bu veritabanı doğru şekilde oluşturulmadığında, emulator başlatılamaz veya oyuna giriş yapılamaz. Bu nedenle, 'Failed Creating Database' hatası oldukça kritiktir.
Hatanın Nedenleri Nelerdir?
Bu hata farklı nedenlerle ortaya çıkabilir. Öncelikle emulatorünüzün (örneğin USKO, ROFD) veritabanı bağlantı dosyasını kontrol etmelisiniz. Genellikle bu dosya config formatındadır ve MySQL sunucusu ile bağlantı bilgilerini içerir. Aşağıdaki maddeler hatanın yaygın nedenleridir:
- Veritabanı sunucusu çalışmıyor olabilir.
- Kullanıcı adı veya şifre yanlış girilmiş olabilir.
- Gerekli tablolar henüz oluşturulmamış olabilir.
- Veritabanı yetkilendirme sorunu olabilir.
Hatanın Çözüm Yolları
1. MySQL Sunucusunun Aktif Olduğundan Emin Olun:
Öncelikle MySQL servisinin çalıştığından emin olun. Eğer XAMPP kullanıyorsanız Apache ve MySQL servislerinin açık olduğundan emin olun. Servis çalışmıyorsa emulator veritabanı ile iletişim kuramaz.
2. Config Dosyasını Kontrol Edin:
Emulator ile gelen config dosyasında bulunan veritabanı kullanıcı adı, şifre ve host bilgilerinin doğru olduğundan emin olun. Özellikle localhost veya IP adresi doğru girilmelidir.
3. Gerekli Tabloları Oluşturun:
Knight Online veritabanı için gerekli olan tablolar (.sql uzantılı dosyalar) doğru şekilde import edilmelidir. Bu dosyalar genellikle serverfiles paketlerinde yer alır. Eğer eksikse, veritabanı oluşmayacağı için emulator çalışmaz.
4. Yetkilendirme Sorunlarını Kontrol Edin:
MySQL üzerinde oluşturduğunuz kullanıcı, ilgili veritabanına erişim iznine sahip olmalıdır. Kullanıcıyı oluştururken doğru yetkileri verdiğinizden emin olun.
Knight Online Emulator Seçimi ve Kaynaklar
USKO, ROFD gibi emulatorler farklı yapılar sunar. Her biri için veritabanı yapılandırması değişiklik gösterebilir. Bu nedenle emulatorünüzü seçerken güncel ve desteklenen bir sürüm kullandığınızdan emin olun. Ayrıca, Knight Lobby gibi sitelerden güncel KO Server Files, emulator, database scriptleri ve diğer kaynakları indirebilirsiniz.
Sunucu Dosyaları ve Yapılandırma
Server files içinde bulunan item.bin, mob.bin, npc.bin gibi dosyalar da önemli rol oynar. Ancak bu dosyalar doğrudan veritabanıyla ilgili olmasa da, emulatorün veritabanı oluşturma sürecinde bazı kontroller gerçekleştirmesi mümkündür. Bu nedenle tüm dosyaların eksiksiz ve doğru konumda olduğundan emin olun.
Sonuç
'Failed Creating Database' hatası, özellikle yeni başlayan geliştiriciler için kafa karıştırıcı olabilir. Ancak yukarıda belirtilen adımları dikkatlice uygulayarak bu hatayı çözebilirsiniz. Knight Online özel sunucu geliştirme süreci oldukça keyiflidir. Ancak sabır ve detaylı yapılandırma gerektirir. Dilerseniz Knight Lobby üzerinden daha fazla kaynak ve destek alabilirsiniz.
What Is the 'Failed Creating Database' Error in Knight Online Private Server Setup?
One of the common issues encountered by developers while setting up Knight Online private servers (pserver) is the 'Failed Creating Database' error. This error typically indicates problems related to database connection or configuration. Whether you are using an emulator such as KO Development (kodev), USKO, ROFD, or another one, incorrect or missing database configurations can trigger this error. In this article, we will discuss this error in detail.
What Is the Knight Online Database?
In Knight Online private servers, the database is the central structure that holds all player data, inventory contents, items, level information, and more. Typically, SQL-based databases are used. If this database is not created correctly, the emulator cannot start or players may be unable to log into the game. Therefore, the 'Failed Creating Database' error is quite critical.
What Are the Causes of This Error?
This error can arise from various reasons. First, check your emulator's (e.g., USKO, ROFD) database connection file. Usually, this file is in config format and contains MySQL server connection details. Below are common causes of the error:
- The database server may not be running.
- Username or password may have been entered incorrectly.
- Required tables may not have been created yet.
- There may be database authorization issues.
Solutions for the Error
1. Ensure That the MySQL Server Is Active:
Firstly, ensure that the MySQL service is running. If you're using XAMPP, make sure Apache and MySQL services are turned on. If the service is not running, the emulator cannot communicate with the database.
2. Check Your Config File:
Ensure that the database username, password, and host information in the config file provided with the emulator are correct. Especially, the localhost or IP address must be entered correctly.
3. Create the Required Tables:
The necessary tables required for the Knight Online database (.sql extension files) must be imported correctly. These files are usually included in serverfiles packages. If they are missing, the database will not be created, and the emulator will fail to run.
4. Check Authorization Issues:
The user you created in MySQL must have access permissions to the relevant database. When creating the user, ensure that you granted the correct privileges.
Choosing a Knight Online Emulator and Resources
Emulators like USKO and ROFD offer different structures. Database configuration may vary depending on the emulator. Therefore, ensure you are using an updated and supported version. You can also download current KO Server Files, emulators, database scripts, and other resources from sites like Knight Lobby.
Server Files and Configuration
Files such as item.bin, mob.bin, npc.bin found in server files also play an important role. Although these files are not directly related to the database, the emulator might perform certain checks during the database creation process. Therefore, ensure all files are complete and located correctly.
Conclusion
The 'Failed Creating Database' error can be confusing especially for beginners. However, by carefully following the steps outlined above, you can resolve this error. Developing Knight Online private servers is enjoyable, but it requires patience and detailed configuration. You can get further resources and support via Knight Lobby.
Bunun 2 Sebebi Vardır 1.Databasede Rules Kısmında Türkçe Karakter Engelleme Yada CREATE_NEW_CHAR Prosedüründendir.
Bunu Düzeltmek İçin
Kod:
ALTER PROCEDURE CREATE_NEW_CHAR @nRet smallint OUTPUT, @AccountID char(21), @index tinyint, @CharIDchar(21), @Race tinyint, @class smallint, @Hair tinyint, @Face tinyint, @Str tinyint, @Sta tinyint, @Dex tinyint, @Intel tinyint, @Cha tinyint AS DECLARE @Row tinyint, @Nation tinyint, @zone tinyint, @PosX int, @PosZ int SET @Row = 0SET @Nation = 0 SET zone = 0 SET @PosX = 0 SET @PosZ = 0 SELECT @Nation = bNation, @Row = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID IF @Row >= 5SET @nRet = 1 IF @Nation = 1 AND @Race > 10SET @nRet = 2 ELSE IF @Nation = 2 AND @Race < 10SET @nRet = 2 ELSE IF @Nation <>1 AND @Nation <> 2SET @nRet = 2 IF @nRet > 0 RETURN SELECT @Row = COUNT(*) FROM USERDATA WHERE strUserId = @CharID IF @Row > 0 BEGIN SET @nRet = 3 RETURN END --SET zone = @Nation SET zone =21 SELECT @PosX = InitX, @PosZ = InitZ FROM ZONE_INFO WHERE ZoneNo = zone BEGIN TRAN IF @index = 0 UPDATE ACCOUNT_CHAR SET strCharID1 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID ELSE IF @index = 1 UPDATE ACCOUNT_CHAR SET strCharID2 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID ELSE IF @index = 2 UPDATE ACCOUNT_CHAR SET strCharID3 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID ELSE IF @index = 3 UPDATE ACCOUNT_CHAR SET strCharID4 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID ELSE IF @index = 4 UPDATE ACCOUNT_CHAR SET strCharID5 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID INSERT INTO USERDATA (strUserId, Nation, Race, Class, HairColor, Face, Strong, Sta, Dex, Intel, Cha, Zone, PX, PZ ) VALUES (@CharID, @Nation, @Race, @class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @zone, @PosX, @PosZ ) IF @@ERROR <> 0 BEGIN ROLLBACK TRAN SET @nRet = 4 RETURN END COMMIT TRAN SET @nRet = 0 GO
Bu Kodu Query'e Yapıştırıp F5 Basmanız Yeterlidir.
Knight Online Private Server Oluşturma Sürecinde 'Failed Creating Database' Hatası Nedir?
Knight Online özel sunucuları (pserver) oluştururken geliştiricilerin karşılaştığı yaygın sorunlardan birisi 'Failed Creating Database' hatasıdır. Bu hata, genellikle veritabanı bağlantısı ya da yapılandırmasıyla ilgili sorunları belirtir. Özellikle KO Development (kodev), USKO, ROFD veya başka bir emulator kullanıyor olabilirsiniz; ancak veritabanı ayarlarında eksiklik veya hatalı yapılandırma bu hatayı tetikler. Bu yazıda bu hatayı detaylı olarak ele alacağız.
Knight Online Veritabanı Nedir?
Knight Online özel sunucularında veritabanı, oyuncu verileri, envanter içerikleri, eşyalar, seviye bilgileri gibi tüm verileri barındıran merkezi yapıdır. Genellikle SQL tabanlı veritabanları kullanılır. Bu veritabanı doğru şekilde oluşturulmadığında, emulator başlatılamaz veya oyuna giriş yapılamaz. Bu nedenle, 'Failed Creating Database' hatası oldukça kritiktir.
Hatanın Nedenleri Nelerdir?
Bu hata farklı nedenlerle ortaya çıkabilir. Öncelikle emulatorünüzün (örneğin USKO, ROFD) veritabanı bağlantı dosyasını kontrol etmelisiniz. Genellikle bu dosya config formatındadır ve MySQL sunucusu ile bağlantı bilgilerini içerir. Aşağıdaki maddeler hatanın yaygın nedenleridir:
- Veritabanı sunucusu çalışmıyor olabilir.
- Kullanıcı adı veya şifre yanlış girilmiş olabilir.
- Gerekli tablolar henüz oluşturulmamış olabilir.
- Veritabanı yetkilendirme sorunu olabilir.
Hatanın Çözüm Yolları
1. MySQL Sunucusunun Aktif Olduğundan Emin Olun:
Öncelikle MySQL servisinin çalıştığından emin olun. Eğer XAMPP kullanıyorsanız Apache ve MySQL servislerinin açık olduğundan emin olun. Servis çalışmıyorsa emulator veritabanı ile iletişim kuramaz.
2. Config Dosyasını Kontrol Edin:
Emulator ile gelen config dosyasında bulunan veritabanı kullanıcı adı, şifre ve host bilgilerinin doğru olduğundan emin olun. Özellikle localhost veya IP adresi doğru girilmelidir.
3. Gerekli Tabloları Oluşturun:
Knight Online veritabanı için gerekli olan tablolar (.sql uzantılı dosyalar) doğru şekilde import edilmelidir. Bu dosyalar genellikle serverfiles paketlerinde yer alır. Eğer eksikse, veritabanı oluşmayacağı için emulator çalışmaz.
4. Yetkilendirme Sorunlarını Kontrol Edin:
MySQL üzerinde oluşturduğunuz kullanıcı, ilgili veritabanına erişim iznine sahip olmalıdır. Kullanıcıyı oluştururken doğru yetkileri verdiğinizden emin olun.
Knight Online Emulator Seçimi ve Kaynaklar
USKO, ROFD gibi emulatorler farklı yapılar sunar. Her biri için veritabanı yapılandırması değişiklik gösterebilir. Bu nedenle emulatorünüzü seçerken güncel ve desteklenen bir sürüm kullandığınızdan emin olun. Ayrıca, Knight Lobby gibi sitelerden güncel KO Server Files, emulator, database scriptleri ve diğer kaynakları indirebilirsiniz.
Sunucu Dosyaları ve Yapılandırma
Server files içinde bulunan item.bin, mob.bin, npc.bin gibi dosyalar da önemli rol oynar. Ancak bu dosyalar doğrudan veritabanıyla ilgili olmasa da, emulatorün veritabanı oluşturma sürecinde bazı kontroller gerçekleştirmesi mümkündür. Bu nedenle tüm dosyaların eksiksiz ve doğru konumda olduğundan emin olun.
Sonuç
'Failed Creating Database' hatası, özellikle yeni başlayan geliştiriciler için kafa karıştırıcı olabilir. Ancak yukarıda belirtilen adımları dikkatlice uygulayarak bu hatayı çözebilirsiniz. Knight Online özel sunucu geliştirme süreci oldukça keyiflidir. Ancak sabır ve detaylı yapılandırma gerektirir. Dilerseniz Knight Lobby üzerinden daha fazla kaynak ve destek alabilirsiniz.
What Is the 'Failed Creating Database' Error in Knight Online Private Server Setup?
One of the common issues encountered by developers while setting up Knight Online private servers (pserver) is the 'Failed Creating Database' error. This error typically indicates problems related to database connection or configuration. Whether you are using an emulator such as KO Development (kodev), USKO, ROFD, or another one, incorrect or missing database configurations can trigger this error. In this article, we will discuss this error in detail.
What Is the Knight Online Database?
In Knight Online private servers, the database is the central structure that holds all player data, inventory contents, items, level information, and more. Typically, SQL-based databases are used. If this database is not created correctly, the emulator cannot start or players may be unable to log into the game. Therefore, the 'Failed Creating Database' error is quite critical.
What Are the Causes of This Error?
This error can arise from various reasons. First, check your emulator's (e.g., USKO, ROFD) database connection file. Usually, this file is in config format and contains MySQL server connection details. Below are common causes of the error:
- The database server may not be running.
- Username or password may have been entered incorrectly.
- Required tables may not have been created yet.
- There may be database authorization issues.
Solutions for the Error
1. Ensure That the MySQL Server Is Active:
Firstly, ensure that the MySQL service is running. If you're using XAMPP, make sure Apache and MySQL services are turned on. If the service is not running, the emulator cannot communicate with the database.
2. Check Your Config File:
Ensure that the database username, password, and host information in the config file provided with the emulator are correct. Especially, the localhost or IP address must be entered correctly.
3. Create the Required Tables:
The necessary tables required for the Knight Online database (.sql extension files) must be imported correctly. These files are usually included in serverfiles packages. If they are missing, the database will not be created, and the emulator will fail to run.
4. Check Authorization Issues:
The user you created in MySQL must have access permissions to the relevant database. When creating the user, ensure that you granted the correct privileges.
Choosing a Knight Online Emulator and Resources
Emulators like USKO and ROFD offer different structures. Database configuration may vary depending on the emulator. Therefore, ensure you are using an updated and supported version. You can also download current KO Server Files, emulators, database scripts, and other resources from sites like Knight Lobby.
Server Files and Configuration
Files such as item.bin, mob.bin, npc.bin found in server files also play an important role. Although these files are not directly related to the database, the emulator might perform certain checks during the database creation process. Therefore, ensure all files are complete and located correctly.
Conclusion
The 'Failed Creating Database' error can be confusing especially for beginners. However, by carefully following the steps outlined above, you can resolve this error. Developing Knight Online private servers is enjoyable, but it requires patience and detailed configuration. You can get further resources and support via Knight Lobby.
