dude Posted May 26, 2007 Posted May 26, 2007 i have a problem with my game something to do with the mysql plz have a look at my site register the login and it just says Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home2/edney/public_html/mysql.php on line 2 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home2/edney/public_html/mysql.php on line 3 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home2/edney/public_html/authenticate.php on line 30 Access denied for user 'root'@'localhost' (using password: YES) if anyone wants to have a look at it the url is http://englishmafia.justfreespace.com/login.php Quote
~Spooky~ Posted June 1, 2007 Posted June 1, 2007 Re: plz help you not using the right password and user name for the cpanel. Not hard to do Quote
Matty Posted June 1, 2007 Posted June 1, 2007 Re: plz help Or you have a seperate password/username for mysql access, or you havnt assigned a mysql account to that database if required... Quote
General Doom Posted June 1, 2007 Posted June 1, 2007 Re: plz help Or, your using free space, so it will be pretty hard to get the SQL to work. Seing as how you probably wont be able to create a database and all. Quote
~Spooky~ Posted June 2, 2007 Posted June 2, 2007 Re: plz help you can on free sites. I have done them. The database is there if hes coming up with that error. The mysql.php and the config.php has to have the username and pass of cpanel and in config the pass and user of DB. I fix this problem many times. Quote
N00b Posted June 2, 2007 Posted June 2, 2007 Re: plz help I Had this problem,easy to fix u done ur mysql.php wrong :P Quote
~Spooky~ Posted June 2, 2007 Posted June 2, 2007 Re: plz help yeah thats what Im saying. Its easy fix. Im no coder but I fixed alot of games had this problem. Im even surprised all the bashing the so called experienced coders do one here but no one had the simple answer. It is his mysql.php thats set up wrong. I even seen some games have config.php thats set wrong also. I have two games. GP has mysql.php only, Crazy Chaos has both config.php and mysql.php. Now if theres a third or second mysql.php make sure thats right too. If you need help MSN me I will give you screen shot of how to do it and where to look. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.