Univention Bugzilla – Bug 46744
mysql_upgrade fails in UCS 4.3 postup
Last modified: 2018-11-27 17:38:09 CET
The MySQL/MariaDB database has to be updated when upgrading from UCS 4.2 -> 4.3. To do that, we run mysql_upgrade in postup.sh. We received a report that the run failed with the following error in the updater.log:
Looking for ‘mysql’ as: /usr/bin/mysql
Looking for ‘mysqlcheck’ as: /usr/bin/mysqlcheck
Version check failed. Got the following error when calling the ‘mysql’ command line client
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2 “No such file or directory”)
FATAL ERROR: Upgrade failed
A separate call to mysql_upgrade some time later worked without error
I can't reproduce this.
Any more infos on this?
I could not reproduce it. From the forum thread one can guess that maybe only the mysql-server package was installed, not univention-mysql?