I am running directadmin on ubuntu with da_updates on.
When the auto updates are performed, the server reboots and mysql has an error.
I can see that the "mysql pid" process is running in directadmin cp, but website services cannot connect to database after a restart.
I can solve this each time only by killing the PID of the process, then running:
/usr/local/directadmin/scripts/mysqld start
I believe that when the server is restarted/rebooted the wrong MySQL is started (directadmin was installed not on totally blank server as mysql existed before install).
How do I check and change so that on server reboot, the correct MySQL is being started ? where do I look and how do I check the services being started ?
I have tried adding the following to /etc/rc.local on my ubuntu server, however this does not work..
/etc/init.d/mysql stop
/etc/init.d/mysqld stop
/usr/local/directadmin/scripts/mysqld start
Thanks for your help!
When the auto updates are performed, the server reboots and mysql has an error.
I can see that the "mysql pid" process is running in directadmin cp, but website services cannot connect to database after a restart.
I can solve this each time only by killing the PID of the process, then running:
/usr/local/directadmin/scripts/mysqld start
I believe that when the server is restarted/rebooted the wrong MySQL is started (directadmin was installed not on totally blank server as mysql existed before install).
How do I check and change so that on server reboot, the correct MySQL is being started ? where do I look and how do I check the services being started ?
I have tried adding the following to /etc/rc.local on my ubuntu server, however this does not work..
/etc/init.d/mysql stop
/etc/init.d/mysqld stop
/usr/local/directadmin/scripts/mysqld start
Thanks for your help!
Last edited: