bricegui Posted February 3, 2019 Share Posted February 3, 2019 Bonjour à tous, Après plusieurs lectures dans les forums, je n'ai rien trouvé. C'est pour cela que je demande votre aide. Suite à l'aide de certaine personne, j'ai passé mon site sur un perf2014x1. Par contre lors de la migration de la base de donnée, j'ai un problème car j'ai l'erreur : Link to database cannot be established: SQLSTATE[HY000] [2002] Connection timed out. Je vous résume mon process. 1 : J'ai activé mon serveur SQL = OK 2 : Passage du site en maintenance = OK 3 : Importation de la base dans le SQL privé = OK 4 : Modification de mon fichier de configuration du site. A. J'ai modifié le fichier "settings.inc.php" <?php define('_DB_SERVER_', 'gj6*********'); define('_DB_NAME_', 'FI*******'); define('_DB_USER_', 'jen*****'); define('_DB_PASSWD_', 'jen********'); define('_DB_PREFIX_', 'ps_'); define('_MYSQL_ENGINE_', 'MyISAM'); define('_PS_CACHING_SYSTEM_', 'CacheMemcache'); define('_PS_CACHE_ENABLED_', '1'); define('_MEDIA_SERVER_1_', ''); define('_MEDIA_SERVER_2_', ''); define('_MEDIA_SERVER_3_', ''); define('_COOKIE_KEY_', 'g2FtLVoZN0aRHz5THJAd6PLRUnr5m6sSLqPDEwImv0bYX8i1QOnftaSY'); define('_COOKIE_IV_', 'XSSs5t5b'); define('_PS_CREATION_DATE_', '2015-10-16'); if (!defined('_PS_VERSION_')) define('_PS_VERSION_', '1.6.0.9'); define('_RIJNDAEL_KEY_', 'vhIY6wWrkZkWMwsRsHLRhJEEpXbh66xs'); define('_RIJNDAEL_IV_', 'uuv3u/u/uH7Idn6v5P6FMw=='); J'ai seulement modifié _DB_SERVER, _DB_NAME_', 'FI*******'); '_DB_USER_'; '_DB_PASSWD_'. Il y a peut être d'autre chose à changer Je suis sûr de mes loggins car j'ai accès à phpmyadmin avec. Merci d'avance pour votre aide. Prestashopement. Brice. Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 Recompare _DB_SERVER_ avec les informations spécifiées dans ton panel. Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Merci doekia pour ta réponse. Pourrais-tu développer ta réponse stp car je suis novice sur prestashop et je n'ai pas compris ta réponse !!!! (oupss :-) Merci d'avance pour ton retour. Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 quel est le contenu exact de _DB_SERVER_ quel information exact y a-t-il concernant le serveur coté panel OVH ne copie pas ici le mot de passe, mais le reste est safe Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) Edited February 4, 2019 by bricegui (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 (edited) define('_DB_SERVER_ ','gj634092-001.privatesql:35529'); tu es absolument sûr de ton user "admin" ? Edited February 4, 2019 by doekia (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 Vire ta copie d'écran de settings.inc.php (je pensais pas que tu allais faire un copie de celui-ci) avec les COOKEY_KEY et COOKEY_IV Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Merci doekia. Tu me demandes des infos moi je donne. Bon ok la carte bleue je me serai posé des questions🙂 Pour le user j'ai effectivement fait une erreur ce n'est pas admin mais jennifer. le mot de passe reste le même. sur phpmyadmin.ovh.net tout fonctionne bien. Merci encore pour ton aide. Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 (edited) 3 hours ago, doekia said: define('_DB_SERVER_ ','gj634092-001.privatesql:35529'); tu es absolument sûr de ton user "admin" ? Edited February 4, 2019 by doekia (see edit history) Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 doekia Est-ce normal que tu passes d'un _DB_SERVER_ ','gj634092-001.privatesql:35529' _DB_SERVER_ ','gj634092-002.privatesql:35529' En laissant 1, cela avance au niveau du site 🙂 mais toujours une erreur maintenant erreur Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 pardon pour le 2 ... typo mets 1 et surtout mets le port :35529 Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Je te pardonne 🙂 C'est fait. mais j'arrive sur erreur 500 serveur error. Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 Avec le debug actif? Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 Donc là tu es bien connecté à la base de données mais elle semble vide ou incomplète Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Je suis entrain de refaire la sauvegarde de mon ancienne base et de refaire une extraction. Je te tiens au courant. Merci encore pour ton aide. Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) OUAISSSSS cela fonctionne merci doekia Par contre en mode debug j'ai toujours ce message. Est-ce normal ? Merci encore pour ton aide précieuse. Edited February 4, 2019 by bricegui (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 Oui mysql5.7 avec paramètres de base non compatible Si sur un SQL privé, en mode root SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 doekia, C'est effectivement un sql privé. Peux-tu être plus explicite pour ta formule magique stp. Dans quel fichier je rajoute cela ? Merci pour ton aide Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 En SQL, en mode root SQL Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 La je sèche. Je vais ou pour faire cela : Sur la back office prestashop ou sur phpmyadmin ? Désolé mais comme je l'ai dit plus haut je suis novice et le langage informatique est encore flou pour moi. Merci. Link to comment Share on other sites More sharing options...
doekia Posted February 4, 2019 Share Posted February 4, 2019 Demande à ton hébergeur ... ou revient à une version SQL 5.6 Link to comment Share on other sites More sharing options...
bricegui Posted February 4, 2019 Author Share Posted February 4, 2019 Merci doekia, J'ai fait appel à OVH, il me change ma base de donnée en SQL 5.6. Encore un grand merci pour ton aide. Je ne ferme pas la conversation pour l'instant. Dès que j'ai la réponse d'OVH je la valide. Merci encore Doekia. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now