WordPress always points to localhost database

I tried to migrate my MySQL installation to a new server. Both new and old servers are in the same intranet.

Tried many times to change the wp-config.php file to new server but no avail and it always fail with ” we can’t contact the database server at localhost”. However, clean new installation works.

It seems WordPress is always stuck at “localhost” database no matter what the DB_HOST content are. This also occurs in another existing installations. Please help.



Source link