User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

Robot spider for disastersAfter upgrading my OpenSuse to 12.3 I could not start mysql.

# systemctl start mysql.service
Job for mysql.service failed. See 'systemctl status mysql.service' and 'journalctl -n' for details.

journalctl -n gave me among others:

Mar 17 05:55:09 gruz systemd[1]: mysql.service: control process exited, code=exited status=1
Mar 17 05:55:09 gruz systemd[1]: Failed to start LSB: Start the MySQL database server.
Mar 17 05:55:09 gruz systemd[1]: Unit mysql.service entered failed state

Running # mysql_secure_installation asked passwrod but didn't accept any:

Enter current password for root (enter for none): 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)

Solution:

I had two problems - mysql database folder and files owner and an empty file .run-mysql_upgrade.

So here is how I solved it:

chown -R mysql:mysql /var/lib/mysql; rm /var/lib/.run-mysql_upgrade

Comments   

ralph
+1 # ralph 2013-09-21 13:01
had the same problem - your solution worked for me too. Thank you!
Chris
+1 # Chris 2014-01-07 23:34
Bravo! The chown command you suggested worked perfectly. Thanks very much!!
Chris

Please register to post comments.

Found a typo? Please select it and press Ctrl + Enter.
FaLang translation system by Faboba
Електронна бібліотека «Exlibris»: історичні дослідження, мемуаристика, публіцистика, художня література Українська етнографія: книги, курси лекцій, статті й матеріали, мапи, фотоальбоми, веб-ресурси Правителі України: портрети, життєписи, матеріали Твори Адріана Кащенка: романтика козацьких часів Народна війна 1917-1932

See a typo?

Select the text block and press

CTRL+Enter

Comments

  • NotificationAry - get emails on Joomla content is submitted, added or changed

    shteevy shteevy 23.02.2019 01:13
    Hello, not easy for me to give you an akeeba because our Joomla in an Intranet with many things from ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    gruz gruz 22.02.2019 09:49
    Sounds like a bug. To test/fix the issue I need your web-site copy (akeebabackup of your Joomla or a ...

    Read more...

     
  • NotificationAry - get emails on Joomla content is submitted, added or changed

    shteevy shteevy 21.02.2019 19:02
    Hello, many thanks for this extension !! :-) Could you please explain me how to get the "notify switch" ...

    Read more...

     
  • MVC Override - change joomla extensions behaviour without changing core files

    gruz gruz 25.01.2019 16:03
    No. It's PHP log files generated at a level higher then Joomla.

    Read more...

     
  • MVC Override - change joomla extensions behaviour without changing core files

    mboquillon mboquillon 25.01.2019 15:59
    In the administrator/logs folder ?

    Read more...