Can't connect to database after migration to local server
-
Hi,
I’ve been having a lot of issues with my internet connexion so I decided to migrate my live website to my local computerI copied all the files from my server to my local folder
I created a new database with sqlmyadmin on my local server
I exported the live database and imported it into my new database
I edited wp-config as follows:// ** Réglages MySQL - Votre hébergeur doit vous fournir ces informations. ** // /** Nom de la base de données de WordPress. */ define('DB_NAME', ‘newdb’); /** Utilisateur de la base de données MySQL. */ define('DB_USER', ‘root’); /** Mot de passe de la base de données MySQL. */ define('DB_PASSWORD', ‘password’); /** Adresse de l'hébergement MySQL. */ define('DB_HOST', ‘localhost’); /** Jeu de caractères à utiliser par la base de données lors de la création des tables. */ define('DB_CHARSET', 'utf8'); /** Type de collation de la base de données. * N'y touchez que si vous savez ce que vous faites. */ define('DB_COLLATE', '');
but I get the message: “Erreur lors de la connexion à la base de données” (can’t connect to the database)
I checked about 1000 times that the user name, password and db name are spelled correctly, to no avail.
I have absolutely no efwording clue what could be wrong here. Anywhere I checked on the world wide web, my config file is exactly as it should be, so perhaps the problem is elsewhere… but where…
- The topic ‘Can't connect to database after migration to local server’ is closed to new replies.