I am having strange connection errors on my wordpress site. I am not too knowledgeable but have since I have moved from one hosting to another, my site displays these weird errors. Again, I have noticed the server name in my wpconfig file is different from mysql database name? Could ths be the problem?

Here are the errors:

Warning: mysql_query(): Access denied for user ”@’localhost’ (using password: NO) in /home/…..and line 118

Warning: mysql_query(): A link to the server could not be established in /home./(servername)/public_html/wp-content/themes/clip/header.php on line 118

Read more here: My SQL database name does not match my wp-config name


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: