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
ОУН-УПА: легенда спротиву Українська Дивізія «Галичина» Зиновій Книш: спогади й матеріали до діяння УВО і ОУН Реаніматор електронних текстів Забуттю не підлягає 1917-1991

See a typo?

Select the text block and press

CTRL+Enter

Comments

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

    gruz gruz 12.11.2018 21:01
    Hi. It was not working for the filter_tags.xml Try the latest RC ...

    Read more...

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

    rogerco rogerco 12.11.2018 17:18
    Hi, Having difficulty seeing how to override an XML form file on the admin site. Trying to replace ...

    Read more...

     
  • bxSlidary - slider for Phoca Gallery with Ajax sliders load

    ferry ferry 08.11.2018 01:12
    Helo, Sorry for late response. I reinstalled the phocagallery component (uninstall and then reinstall ...

    Read more...

     
  • bxSlidary - slider for Phoca Gallery with Ajax sliders load

    gruz gruz 06.11.2018 05:45
    Hi. The module was developed 2 years ago for a project, which is dead now. It seems you are the only ...

    Read more...

     
  • bxSlidary - slider for Phoca Gallery with Ajax sliders load

    ferry ferry 06.11.2018 05:37
    Hi, I've installed this module, but the gallery didn't showup. I activated the debug, but can not ...

    Read more...