You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-03-04 23:38:29

Plight
Member
Registered: 2008-12-08
Posts: 188

Changeing servers - unable to connect to mysql

We are putting glpi on a newer server and are leaving the database on the previous box.  I can not get the GLPI installer to recognize the MYSQL database on the older server. 

I get this error:

Can't connect to the database :
The server answered : Can't connect to MySQL server on 'helpdesk' (13)

I can connect to the db fine from the console of the new server, its only through the GLPI installer that I can not connect.  The older server used localhost of course and did not have this issue.

Im still learning linux so please bare with me!


GLPI .72
Current plugins - massocsimport

CentOS 5.3

Offline

#2 2009-03-05 00:25:57

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Changeing servers - unable to connect to mysql

What is the content of config_db.php ?  did your change the host of mysql in ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2009-03-05 00:55:22

Plight
Member
Registered: 2008-12-08
Posts: 188

Re: Changeing servers - unable to connect to mysql

I figured it out.  It was SElinux preventing apache from connecting to the sql db port.

Then I connected it to the database and it wiped my older database.  I wasnt thinking and because they were different versions (old install was 71.3) and I did not choose upgrade, it wiped my existing database.  Luckily I had a backup and we just lost a few hours.

Yall need to put a warning on that install script that if you choose a existing database, the data will be wiped if its not the same version.  tongue     I know it was my fault that it happened (my first foray into a sql based app), but it may be useful for others that do not have a backup job running.


GLPI .72
Current plugins - massocsimport

CentOS 5.3

Offline

#4 2009-03-05 01:06:58

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Changeing servers - unable to connect to mysql

Ok i close.

apt-get install brain ? wink


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

Board footer

Powered by FluxBB