Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::MiniLogin

Support::MiniLogin Support forum for problems with the official MiniLogin release.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-18-2006, 09:51 PM
Aerewen
Hill Giant
 
Join Date: Dec 2006
Posts: 110
Default

execute this query in your database:
Code:
SELECT * FROM `account` WHERE `id` = 9;
then tell me if it returned any information
Reply With Quote
  #2  
Old 12-18-2006, 10:00 PM
Sakrateri's Avatar
Sakrateri
Dragon
 
Join Date: Mar 2004
Location: England
Posts: 776
Default

it returned

Code:
Empty set <0.00 sec>
__________________
KhepriGames

Game Gallery

My Forums

Reply With Quote
  #3  
Old 12-24-2006, 11:06 AM
Aerewen
Hill Giant
 
Join Date: Dec 2006
Posts: 110
Default

that's really odd... the only thing i can think of to try is changing line 161 from:
Code:
		$sql = "INSERT INTO `account` (`id`,`name`,`charname`,`sharedplat`,`password`,`status`,`lsaccount_id`,`gmspeed`,`revoked`,`minilogin_ip`,`hideme`,`rulesflag`) VALUES (". $newno. ",'". $_POST['username']. "','',0,'". $_POST['password']. "',". $admin_level. ",". $newno. ",0,0,'". $_SERVER['REMOTE_ADDR']. "',0,0)";
to

Code:
		$sql = "INSERT INTO `account` (`id`,`name`,`charname`,`sharedplat`,`password`,`status`,`lsaccount_id`,`gmspeed`,`revoked`,`minilogin_ip`,`hideme`,`rulesflag`) VALUES (NULL,'". $_POST['username']. "','',0,'". $_POST['password']. "',". $admin_level. ",". $newno. ",0,0,'". $_SERVER['REMOTE_ADDR']. "',0,0)";
and hope your database is set to auto increment the id field
Reply With Quote
  #4  
Old 12-27-2006, 06:14 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

I wouldn't insert 'id' at all, on an auto-increment field.
Reply With Quote
  #5  
Old 12-27-2006, 09:28 AM
Aerewen
Hill Giant
 
Join Date: Dec 2006
Posts: 110
Default

setting it to null will cause it to auto increment as well. as memory serves me older versions of MySQL will spit out an error if your insert query doesnt specify at least a null value for a key
Reply With Quote
  #6  
Old 12-28-2006, 03:02 AM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Just because I am in an argumentive mood today (grin), no value passed would also be NULL.

Ok, I am done.
Reply With Quote
  #7  
Old 12-28-2006, 10:26 AM
Aerewen
Hill Giant
 
Join Date: Dec 2006
Posts: 110
Default

Just to sustain your mood :p

You are correct, however if someone were to type in an emty set of quotes or a 0 there thinking it was a mistake in my post, then the query wouldnt work

which is why i added the column and the NULL value to the query
Reply With Quote
  #8  
Old 01-21-2007, 08:27 AM
LordHogFred
Fire Beetle
 
Join Date: Nov 2003
Posts: 5
Default

Ok I'm getting some really horrible errors:

Code:
Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in C:\Inetpub\wwwroot\eqlogin\index.php on line 119

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 120

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 122

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 123

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 158

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 159

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\wwwroot\eqlogin\index.php on line 163
Any ideas?
Reply With Quote
  #9  
Old 01-22-2007, 01:42 PM
John Adams
Demi-God
 
Join Date: Jul 2006
Posts: 1,552
Default

Yeah, google this:
Code:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
Tons of posts about this on the net.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:41 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3