Jane Posted April 26, 2011 Posted April 26, 2011 When I try to open mysql.php I get an error: Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/redx/public_html/cs2d server/mysql.php on line 5 Fatal error: Access denied for user 'root'@'localhost' (using password: YES) in /home/redx/public_html/cs2d server/mysql.php on line 5 The funny thing is that this happens with these files only. Everything else opens without any problems. I can't even open the 'cs2d server' folder, the same error message appears. EDIT: Here's the link for downloading the files. Please read it because I can't figure out this. http://unrealsoftware.de/files_show.php?file=964
jje Posted April 26, 2011 Posted April 26, 2011 Your username for MySQL isn't root. Use your cPanel username for the username, and your cPanel password for the password.
Jane Posted April 26, 2011 Author Posted April 26, 2011 Oh wait, I got it to work but now I get this: Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/redx/public_html/cs2d server/index.php on line 12 http://cs2dclans.heliohost.org/cs2d%20server/ Have no idea what could be wrong now.
jje Posted April 26, 2011 Posted April 26, 2011 There might be a coding issue with your MySQL query. Could you post what query you are trying to run? Try running your query in phpMyAdmin. The query will probably look something like: SELECT * FROM test_table WHERE id=123
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now