MySQL upgrade fails due to presence of directories containing a dot
This document (7014519) is provided subject to the disclaimer at the end of this document.
Environment
Situation
# touch /var/lib/mysql/.force_upgradeor because of a 3rd party database containing a "." in the folder name
# rcmysql restart
Restarting service MySQL
Shutting down service MySQL
done
Will update MySQL now, if you encounter any problems, please read
following file:
/usr/share/doc/packages/mysql/README.SuSE
Log files inconsistency, please merge following files manually:
/var/lib/mysql/mysqld.log
/var/log/mysqld.log
Running protected MySQL...
Upgrading MySQL...
Failed to ALTER DATABASE `#mysql50#.tmp` UPGRADE DATA DIRECTORY NAME
Error: Incorrect database name '#mysql50#.tmp'
/usr/bin/mysqlcheck: Got error: 1102: Incorrect database name
'#mysql50#.tmp' when selecting the database
FATAL ERROR: Upgrade failed
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Running 'mysqlcheck' with connection arguments:
'--socket=/var/tmp/mysql-protected.9ixAiH/mysql.sock'
Running 'mysqlcheck' with connection arguments:
'--socket=/var/tmp/mysql-protected.9ixAiH/mysql.sock'
linux:~ # touch /var/lib/mysql/.force_upgrade
linux:~ # rcmysql restart
Restarting service MySQL
Shutting down service MySQL done
Will update MySQL now, if you encounter any problems, please read following file:
/usr/share/doc/packages/mysql/README.SuSE
Log files inconsistency, please merge following files manually:
/var/lib/mysql/mysqld.log
/var/log/mysqld.log
Running protected MySQL...
Upgrading MySQL...
Failed to ALTER DATABASE `#mysql50#cacti.org` UPGRADE DATA DIRECTORY NAME
Error: Incorrect database name '#mysql50#cacti.org'
/usr/bin/mysqlcheck: Got error: 1102: Incorrect database name '#mysql50#cacti.org' when selecting the database
FATAL ERROR: Upgrade failed
Looking for 'mysql' as: /usr/bin/mysql
Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Running 'mysqlcheck' with connection arguments: '--socket=/var/tmp/mysql-protected.m7WZgW/mysql.sock'
Running 'mysqlcheck' with connection arguments: '--socket=/var/tmp/mysql-protected.m7WZgW/mysql.sock'
Resolution
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7014519
- Creation Date: 07-Feb-2014
- Modified Date:03-Mar-2020
-
- Subscription Management Tool
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com