Cesarferrandism Posted May 1, 2014 Share Posted May 1, 2014 Hello My name is Caesar. I think this post because I need help. I set up a website and a part I get this error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'xxxx'@'localhost' (using password: NO) in/home3/xxxx/public_html/valencia/admin/indexspider.php on line 36Access denied for user 'xxxx'@'localhost' (using password: NO) The error log knows that: /home3/xxxx/public_html/valencia/lib/dblib.php on line 10 This is the file indexspider.php: indexspider.php This is the dblib.php dblib.php Any idea of this error? Thanks Quote Link to comment Share on other sites More sharing options...
Oliverkahn Posted May 1, 2014 Share Posted May 1, 2014 it seems your db pass is incorrect try checking it i support you shoulduse mysql_connect() instead of mysql_pconnect() Quote Link to comment Share on other sites More sharing options...
Cesarferrandism Posted May 1, 2014 Author Share Posted May 1, 2014 I've changed and remains the same. That can happen? Quote Link to comment Share on other sites More sharing options...
Cesarferrandism Posted May 1, 2014 Author Share Posted May 1, 2014 PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'xxxx'@'localhost' (using password: NO) in /home3/xxxx/public_html/valencia/admin/indexspider.php on line 36 This is the error log now Quote Link to comment Share on other sites More sharing options...
Oliverkahn Posted May 1, 2014 Share Posted May 1, 2014 post your code here and explain each line in a comment Quote Link to comment Share on other sites More sharing options...
Oliverkahn Posted May 1, 2014 Share Posted May 1, 2014 but i think its because you are wrong in your username and password Quote Link to comment Share on other sites More sharing options...
adam_bray Posted May 1, 2014 Share Posted May 1, 2014 Have you setup the database and assigned a user to it? It doesn't look like a coding error, you just need to enter MySQL login details for the database. Quote Link to comment Share on other sites More sharing options...
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.