Title: Error database
Last modified: February 14, 2019

---

# Error database

 *  Resolved [maximeba](https://wordpress.org/support/users/maximeba/)
 * (@maximeba)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/)
 * Hello, i use BackwpUp for many website, but on the last one, i have an error 
   that i never seen before and i don’t know how to fix it. It seems backwup cannot
   connect to server and database, however i’ve checked name of server and database.
   I give you a part of the error message that i get.
    Any idea will be welcome 
   Regard
 * AVERTISSEMENT : mysqli::real_connect(): php_network_getaddresses: getaddrinfo
   failed: Name or service not known
    [11-Feb-2019 01:02:55] AVERTISSEMENT : mysqli::
   real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name
   or service not known [11-Feb-2019 01:02:55] ERREUR : Impossible de se connecter
   au serveur à la base de données MySQL 2002: php_network_getaddresses: getaddrinfo
   failed: Name or service not known [11-Feb-2019 01:02:55] 2. Tentative de sauvegarde
   de la base de données…
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-database-10%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/#post-11205343)
 * [@maximeba](https://wordpress.org/support/users/maximeba/)
    Please show me your
   server configuration by go to BackWPUp -> Settings -> Infomation -> and press“
   Get debug info” Thanks!
 *  Thread Starter [maximeba](https://wordpress.org/support/users/maximeba/)
 * (@maximeba)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/#post-11206009)
 * Version WordPress : 5.0.3
    Version BackWPup: 3.6.7 Version PHP: 7.2.15 (64bit)
   Version MySQL: 5.5.60-0+deb7u1-log Version cURL: 7.38.0 Version SSL cURL: OpenSSL/
   1.0.1t URL WP-Cron: [https://daphne-interim.com/wp-cron.php](https://daphne-interim.com/wp-cron.php)
   Connexion au serveur: Réponse au test positive Document root: /kunden/homepages/
   11/d75876****/htdocs/www Dossier temporaire: /homepages/11/d75876****/htdocs/
   www/wp-content/uploads/backwpup-c412cc-temp/ Dossier des fichiers journaux: /
   homepages/11/d75876****/htdocs/www/wp-content/uploads/backwpup-c412cc-logs/ Serveur:
   Apache Système d’exploitation: Linux PHP SAPI: cgi-fcgi Utilisateur PHP actuel:
   u953106** Temps maximum d’exécution: 50000 secondes Temps maximum d’exécution
   d’un script de BackWPup: 25 secondes WP Cron alternatif: Off WP Cron désactivé:
   Off CHMOD Dir: 493 Heure du serveur: 13:49 Heure du site web: 14:49 Fuseau horaire
   du site web: Europe/Paris Décalage temps avec le site web: 1 heures Langue du
   site: fr-FR Type d’encodage du client MySql: utf8mb4 Limite mémoire de PHP: -
   1 Limite mémoire de WP: 128M Limite mémoire maximum de WP: -1 Mémoire utilisée:
   98,50 MB Extension PHP chargées :: Core, PDO, Phar, Reflection, SPL, SimpleXML,
   bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, exif, fileinfo,
   filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mysqli,
   mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, soap, sodium,
   sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip,
   zlib
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/#post-11206423)
 * [@maximeba](https://wordpress.org/support/users/maximeba/)
    could you try to 
   uninstall BackWPUp then reinstall it again? If it not help, I think the issue
   may be related to the server :/, please contact your hoster and ask them about
   that. Hope that help 🙂
 *  Thread Starter [maximeba](https://wordpress.org/support/users/maximeba/)
 * (@maximeba)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/#post-11206520)
 * It doesn’t work after reinstall.
    Did you ever seen this problem before? It seem
   backwup can’t access to the database server, however the website is online, if
   it can access to the database my website won’t works isn’t it?
 * Anyway thank you for your help
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/#post-11206879)
 * [@maximeba](https://wordpress.org/support/users/maximeba/)
    I’m never got an 
   issue like this before :/ kinda weird to me. Please try to modify `wp-config.
   php` , find these lines:
 *     ```
       /** MySQL hostname */
       define('DB_HOST', 'localhost');
       ```
   
 * and replace `define('DB_HOST', 'localhost');` with `define('DB_HOST', '127.0.0.1');`
 * Save the change then run the job again. Is that help?
 *  Thread Starter [maximeba](https://wordpress.org/support/users/maximeba/)
 * (@maximeba)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-database-10/#post-11208884)
 * No, it makes it crash the website, it can’t access to the database. So i put 
   i back the original wp-config
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-database-10/#post-11249798)
 * Hi [@maximeba](https://wordpress.org/support/users/maximeba/)
    Sorry about the
   delayed response, could you please contact your hoster and ask them about why
   the issue: `AVERTISSEMENT : mysqli::real_connect(): php_network_getaddresses:
   getaddrinfo failed: Name or service not known` happens? Thank you very much!
 *  Thread Starter [maximeba](https://wordpress.org/support/users/maximeba/)
 * (@maximeba)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-database-10/#post-11250008)
 * ok i’ll do and i’ll come back to you when i’ll know more about it. Thank you 
   for you help
 *  Thread Starter [maximeba](https://wordpress.org/support/users/maximeba/)
 * (@maximeba)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-database-10/#post-11258310)
 * hi, i contacted my hoster, he told me that it seem Bacwpup can’t connect to the
   database, but he doesn’t really know why. He asks me to try to downgrade php 
   version, is this a good idea?
    He told me that this database function ( mysqli::
   real_connect() )seems to be functional but he told me that :
 * “Otherwise this call function of the database must have the data of the base 
   which must be informed, it would be necessary to be able to control the exactitude
   of its information.”
 * And then, he asks me to contact plugin support 🙂
 * Thank you
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-database-10/#post-11276409)
 * Hi [@maximeba](https://wordpress.org/support/users/maximeba/)
    Sorry about the
   delayed response, could you please try disabled: **pdo_mysql** and **mysqli**
   and enabled: **nd_pdo_mysql** and **nd_mysqli** in cPanel PHP module Options?
 * If you can’t do that, try to downgrade php version to see if it works
 *  [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * (@duongcuong96)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-database-10/#post-11303874)
 * [@maximeba](https://wordpress.org/support/users/maximeba/)
 * since we haven’t heard back from you, I’m going to mark it as resolved.
    If you’re
   still having problems, feel free to let us know ;),
 * Btw, If you find BackWPUp is useful for you, we would really appreciate if you
   leave a positive review and rating.
    This would encourage us to develop new free
   features and provide free support 😀 [https://wordpress.org/support/plugin/backwpup/reviews/](https://wordpress.org/support/plugin/backwpup/reviews/)

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Error database’ is closed to new replies.

 * ![](https://ps.w.org/backwpup/assets/icon-256x256.png?rev=3236141)
 * [BackWPup – WordPress Backup & Restore Plugin](https://wordpress.org/plugins/backwpup/)
 * [Support Threads](https://wordpress.org/support/plugin/backwpup/)
 * [Active Topics](https://wordpress.org/support/plugin/backwpup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/backwpup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/backwpup/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [happyAnt](https://wordpress.org/support/users/duongcuong96/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/error-database-10/#post-11303874)
 * Status: resolved