MYSQl server wont start

6 posts / 0 new
Last post
#1 Thu, 07/08/2010 - 12:45
Owdy

MYSQl server wont start

osku@localhost:/$ sudo /etc/init.d/mysql start Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

How do i reinstall that server?

Thu, 07/08/2010 - 12:50
Owdy

ul 8 19:42:19 localhost mysqld[28087]: 100708 19:42:19 InnoDB: Started; log sequence number 0 43665 Jul 8 19:42:19 localhost mysqld[28087]: 100708 19:42:19 [ERROR] Can't start server : Bind on unix socket: Permission denied Jul 8 19:42:19 localhost mysqld[28087]: 100708 19:42:19 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ? Jul 8 19:42:19 localhost mysqld[28087]: 100708 19:42:19 [ERROR] Aborting Jul 8 19:42:19 localhost mysqld[28087]: Jul 8 19:42:19 localhost mysqld[28087]: 100708 19:42:19 InnoDB: Starting shutdown... Jul 8 19:42:21 localhost mysqld[28087]: 100708 19:42:21 InnoDB: Shutdown completed; log sequence number 0 43665 Jul 8 19:42:21 localhost mysqld[28087]: 100708 19:42:21 [Note] /usr/sbin/mysqld: Shutdown complete Jul 8 19:42:21 localhost mysqld[28087]: Jul 8 19:42:21 localhost mysqld_safe[28149]: ended Jul 8 19:42:28 localhost /etc/init.d/mysql[28285]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in Jul 8 19:42:28 localhost /etc/init.d/mysql[28285]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed Jul 8 19:42:28 localhost /etc/init.d/mysql[28285]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Jul 8 19:42:28 localhost /etc/init.d/mysql[28285]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! Jul 8 19:42:28 localhost /etc/init.d/mysql[28285]: Jul 8 19:42:33 localhost /etc/init.d/mysql[28341]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in Jul 8 19:42:33 localhost /etc/init.d/mysql[28341]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed Jul 8 19:42:33 localhost /etc/init.d/mysql[28341]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Jul 8 19:42:33 localhost /etc/init.d/mysql[28341]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!

Thu, 07/08/2010 - 13:22
Owdy
  MySQL does not appear to be installed and running on your system, or has not yet been set up properly in Webmin's MySQL Database module. If your system does not use MySQL, it should be disabled in Virtualmin's module configuration page.

.. your system is not ready for use by Virtualmin.

Thu, 07/08/2010 - 13:48
Owdy

/var/run/mysqld/ directory is empty???

Thu, 07/08/2010 - 14:03
Owdy

Fixed: chown mysql:mysql /var/run/mysqld

After that, reboot and it works!

Thu, 07/08/2010 - 14:54
andreychek

I'm glad you got it working!

Thanks for the info on how you got it fixed.

-Eric

Topic locked