# Moving Database

**URL:** <https://www.dolibarr.org/forum/t/moving-database/24121>\
**Category:** Installing my Dolibarr\
**Tags:** Linux\
**Created:** [August 8, 2023, 9:36pm UTC](https://www.dolibarr.org/forum/t/moving-database/24121 "2023-08-08T21:36:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dh88uk](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dh88uk](https://www.dolibarr.org/forum/u/dh88uk)\
**Post date:** [August 8, 2023, 9:36pm UTC](https://www.dolibarr.org/forum/t/moving-database/24121/1 "2023-08-08T21:36:54Z")

</div>

Hello,

I’ve encountered an issue when trying to move the database location to another server.

Currently running on Linux (Mint) successfully for 3 years on dedicated hardware with MariaDB, but for some resilliancy i’m moving the database to another installation of MariaDB on a different server.

I backed up to an SQL file and imported it into the new server, quite easy!

Then i modified the server location in conf.php from ‘localhost’ to ‘[http://192.168.0.8](http://192.168.0.8)’  
and of course entered the correct username and password.

But when opening dolibarr i get error messages about not being able to connect, things like

php\_network\_getaddresses: getaddrinfo failed: Name or service not known

port is open through firewall and enabled in MariaDB at 3306

all other things remain the same

Does anyone have experience of this kind of error?

---

<div class="post-metadata">

**Author:** ![dh88uk](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dh88uk](https://www.dolibarr.org/forum/u/dh88uk)\
**Post date:** [August 8, 2023, 9:46pm UTC](https://www.dolibarr.org/forum/t/moving-database/24121/2 "2023-08-08T21:46:28Z")

</div>

So, after a couple of hours trying, just 10 minutes after posting i solved the issue!

the user in the new database was only granted for localhost

also

the address needed to be ‘192.168.0.8’ without the http:// prefix
