• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question MariaDB and default socket with ubuntu 18.04

dmathis

New Pleskian
I got Plesk installed a while ago with mariadb, now unfortuantely mysql_upgrade fails because it cannot find the socket. Actually Plesk did auto-update, and I suppose mariadb got also updated, which triggered the mysql_upgrde, which failed (which lead to an error 500, same as this one).

By default the socket is here: /var/lib/mysql/mysql.sock
But the mysql client looks for it in:/var/run/mysqld/mysqld.sock

So I run
Code:
ln -s /var/lib/mysql/mysql.sock /var/run/mysqld/mysqld.sock
and rerurn mysql_upgrade with
Code:
MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin --force
and that fixed it, Plesk worked again.


The question is now, what is the best practice here?
- Should I alter my.cnf to create the socket at the proper place?
- Did I wrongly installing MariaDB for Plesk?
- Or should I reinstall Plesk using MySQL instead of MariaDB?
 
Back
Top