• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

MySQL Database Error, Please Help!

Synergy

New Member
Joined
Nov 24, 2011
Messages
334
Reaction score
0
Hello guys..

I'm almost going insane.. been trying to solve this for 5-6 hours now..

I had many errors with my database so in the long run I ended up getting it to start and work with changing "localhost" to "127.0.0.1"

But now when I open my server
Try to login to 1/1
To make an account (admin account)

It says wrong acc/pw?!!?!?

I get this:
Code:
[24/07/2012 02:49:38] mysql_real_query(): SELECT `id`, `name`, `password`, `type`, `premdays`, `lastday`, `key`, `warnings` FROM `accounts` WHERE `name` = '1' LIMIT 1;: MYSQL ERROR: Unknown column 'name' in 'field list'
[24/07/2012 02:49:38] mysql_store_result(): SELECT `id`, `name`, `password`, `type`, `premdays`, `lastday`, `key`, `warnings` FROM `accounts` WHERE `name` = '1' LIMIT 1;: MYSQL ERROR: Unknown column 'name' in 'field list'


Please help me, rep++
 
Look,

I use SQL
My server starts up, connects to database through "127.0.0.1" not "localhost"
but when I try to login it says "wrong acc/pass"

And I get this:
[24/07/2012 02:43:56] mysql_real_query(): SELECT `id`, `name`, `password`, `type`, `premdays`, `lastday`, `key`, `warnings` FROM `accounts` WHERE `name` = '1' LIMIT 1;: MYSQL ERROR: Unknown column 'name' in 'field list'
[24/07/2012 02:43:56] mysql_store_result(): SELECT `id`, `name`, `password`, `type`, `premdays`, `lastday`, `key`, `warnings` FROM `accounts` WHERE `name` = '1' LIMIT 1;: MYSQL ERROR: Unknown column 'name' in 'field list'
 
ahhh! i know why
in your config.lua you have
encryption = "sha1"
for fixed need go to
SQL and execute query:
Lua:
UPDATE accounts SET password=SHA1(password);
 
nop still not working..
Thanks for your time Cronox..

Gotta go sleep so I'll just uninstall and try again tomorrow
 
Back
Top