• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net

Lots of mysql errors

sander k

Well-Known Member
NLC
I got like 5000 errors :(

Code:
Warning: mysql_connect(): Access denied for user 'fastwebh_shdfhsa'@'localhost' (using password: YES) in /home/fastwebh/public_html/config.php on line 24

Warning: mysql_select_db(): Access denied for user 'root'@'localhost' (using password: NO) in /home/fastwebh/public_html/config.php on line 25

Warning: mysql_select_db(): A link to the server could not be established in /home/fastwebh/public_html/config.php on line 25
And

Code:
Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in /home/fastwebh/public_html/index.php on line 101

Warning: mysql_query(): A link to the server could not be established in /home/fastwebh/public_html/index.php on line 101

Warning: mysql_affected_rows(): Access denied for user 'root'@'localhost' (using password: NO) in /home/fastwebh/public_html/index.php on line 102

Warning: mysql_affected_rows(): A link to the server could not be established in /home/fastwebh/public_html/index.php on line 102
What do they mean?

I did make a mysql database and added that info to the config file.
 

Dynash

It gets better.
NLC
You've not updated your permissions correctly, or you've not entered them correctly in the config file. Or your script is wrong somewhere?
 

sander k

Well-Known Member
NLC
It worked perfect at WAMP... Somehow...

*edit: hired a coder at fiverr to fix it.
 
Last edited:

Hypernia

New Member
crust opraent

The errors are showing two primary problems:

1) It does not appear you updated the configuration file for the script as you are still using the user "root" to connect to the database. While you were running from a local web server at your home, a shared hosting (assuming that's where your moving too...) will require you to use the username and password created for the domain in your control panel.

2) You likely did not add access permission for the user you created to the database you created.

Best guess if you are using shared web hosting is that you will be using cPanel - cpanel.net/media/tutorials/addmysql.htm

Also, depending on your host your MySQL server may no longer be "localhost"...
 
Top