Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Different MySql confirguration on cold restart

Got problems with your B2 or B3? Share and get helped!
Post Reply
janeks
Posts: 78
Joined: 15 Sep 2008, 02:02

Different MySql confirguration on cold restart

Post by janeks »

Hi!

How the MySql is getting configuration upon cold start?

I observed following behaviour:
I needet to change bind address in /etc/mysql/my.cnf to use both phpmyadmin and to access database from LAN. Upon mysql restart the changes was in effect.
But upon cold start it looks like configuration is different - I could not acces database neither from phpmyadmin and LAN. Again after mysql restart - all is o'k.

Any hints?

brgds
Janeks
janeks
Posts: 78
Joined: 15 Sep 2008, 02:02

Re: Different MySql confirguration on cold restart

Post by janeks »

Bump...

What could be wrong?
What to test ?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Re: Different MySql confirguration on cold restart

Post by tor »

Just to be clear. MySQL is running and you are able to access it locally when it does not work from lan/phpmyadmin?

/Tor
Co-founder OpenProducts and Ex Excito Developer
janeks
Posts: 78
Joined: 15 Sep 2008, 02:02

Re: Different MySql confirguration on cold restart

Post by janeks »

Looks like that.
At least all Bubbas web interface works.

Janeks
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Re: Different MySql confirguration on cold restart

Post by tor »

Hi again,

The web interface does not use Mysql atm so that is no indication that it works locally.

But to summarize, it do work when you do a

Code: Select all

/etc/init.d/mysql restart
but the change does not persist over a reboot?

/Tor
Co-founder OpenProducts and Ex Excito Developer
janeks
Posts: 78
Joined: 15 Sep 2008, 02:02

Re: Different MySql confirguration on cold restart

Post by janeks »

Yes - exactly
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Re: Different MySql confirguration on cold restart

Post by tor »

Hi Janeks,

This one beats me. I have eyed through the startup scripts without finding any indications on your problem. Could you look into the log files and see if there is anything suspicious? Anyone else that have experienced this?

/Tor
Co-founder OpenProducts and Ex Excito Developer
asparak
Posts: 173
Joined: 08 Jun 2009, 07:38

Re: Different MySql confirguration on cold restart

Post by asparak »

A couple of ways the config can change in MySQL:

Starting or restarting it as the wrong user, so it doesn't have permissions for the my.cnf file and runs with a default setup
Starting or running it as a different user that has its own config
corrupt config file
janeks
Posts: 78
Joined: 15 Sep 2008, 02:02

Re: Different MySql confirguration on cold restart

Post by janeks »

Some records from horde.log:

Code: Select all

...
Oct 19 11:25:07 HORDE [emergency] [kronolith] DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array [pid 4573 on line 723 of "/usr/share/horde3/lib/Horde/Group/sql.php"]
Oct 19 11:25:07 HORDE [error] [kronolith] DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array [pid 4573 on line 191 of "/usr/share/horde3/lib/Horde/Prefs/sql.php"]
Oct 19 11:30:05 HORDE [error] [horde] DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array [pid 4579 on line 138 of "/usr/share/horde3/lib/Horde/Prefs/sql.php"]
Oct 19 11:30:05 HORDE [error] [horde] DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array [pid 4579 on line 138 of "/usr/share/horde3/lib/Horde/Prefs/sql.php"]
Oct 19 11:30:08 HORDE [emergency] [kronolith] DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array [pid 4579 on line 723 of "/usr/share/horde3/lib/Horde/Group/sql.php"]
Oct 19 11:30:08 HORDE [error] [kronolith] DB Error: connect failed: [nativecode=Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)] ** Array [pid 4579 on line 191 of "/usr/share/horde3/lib/Horde/Prefs/sql.php"]
After that no records in horde.log
It seems that I did mySql restart.
Post Reply