FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
466 stars 710 forks source link

DarkRP Fails to create mySQL tables. #1521

Closed AuroraEN closed 10 years ago

AuroraEN commented 10 years ago

I have entered all my details in correctly as well as installing mySQLoo modules without error. All my other addons that utilize MySQL are working well. It's just the DarkRP gamemode itself.

I am using the latest commit of the gamemode.

Here are the error logs:

Table 'darkrp_stats.darkrp_levels' doesn't exist (SELECT level,xp FROM darkrp_levels WHERE uid = "2492929737";)
Table 'darkrp_stats.darkrp_levels' doesn't exist (SELECT level,xp FROM darkrp_levels WHERE uid = "2492929737";)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)

Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)

Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)
Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)

Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)

Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)
Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)

Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)

Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)
Table 'darkrp_stats.darkrp_player' doesn't exist (SELECT rpname, wallet, salary FROM darkrp_player WHERE uid = 2492929737;)
L 07/04/2014 - 17:24:34: Lua Error: Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)

Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
Table 'darkrp_stats.playerinformation' doesn't exist (REPLACE INTO playerinformation VALUES("2492929737", "STEAM_0:0:7193");)
gamemodes/darkrp/gamemode/modules/base/sv_data.lua:289: Failed to retrieve player information from MySQL server
AuroraEN commented 10 years ago

I believe I just solved it myself. It's still a bug, however. FAdmin is required to be enabled, else it'll reproduce those errors above. I need FAdmin to stay disabled since it has some minor conflicts with ULX.

FPtje commented 10 years ago

I probably would have closed the issue if you didn't give me that last bit of information. Seriously thanks.

FPtje commented 10 years ago

Alright I just tried the following:

All tables were created just fine. I've got a couple of ideas that might be causing your problem: