Cannot connect to MySQL-read above

Status
Not open for further replies.

fairy454

New Member
Messages
5
Reaction score
0
Points
0
Hi there,I cannot connect to MySQL and as far as I can tell my host name is Localhost,thats what it say's.Is there anything else it could be,I have not made any change's before the updates.
Thanks so much for any help.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
your host name should be localhost not Localhost.

the alphabets are case sensitive
 

fairy454

New Member
Messages
5
Reaction score
0
Points
0
Could you tell me how to change it please as i do not know where to go.
Thank you so much
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
If you are using wordpress. open wp-config.php file located in public_html folder.

If any other script. then there must be a config.php file.

In this file find 'DB_HOST'. and then set the value to localhost

After editing it should look like this.

Code:
/** MySQL hostname */
define('DB_HOST', 'localhost');
 
Last edited:

Anna

I am just me
Staff member
Messages
11,733
Reaction score
578
Points
113
Since all is good, I'll close the thread.
 
Status
Not open for further replies.
Top