Upgrading MySQL database from 5.6 to 5.7 to 8.0 for the most recent Confluence version (7.19).
The setup of the database, confluence installation and the database connection are all successful. However, when I go to dump the new data into the database I receive this error (the following two commands are what I used to dump the data into an sql file and to dump the data into the database).
1. mysqldump -u confluence -p --databases confluence > “D:\mysql-backups\mysql5.7-nofurthercollation.sql”
2. mysqldump -u confluence -p confluence < D:\mysql-backups\mysql5.7-nofurthercollation.sql
Online Confluence documentation suggests that when making changes to a large number of columns, it may be necessary to ignore foreign key constraints while you update the database. This is done by executing this query in mysql ‘SET FOREIGN_KEY_CHECKS=0;’ and ‘SET FOREIGN_KEY_CHECKS=1;’ once you’re done. I tried this approach but still received the same error message.
To find the column referenced in the above error, I execute the following command (This MySQL statement identifies columns with the incorrect character sets or collation):
212 rows are returned from this query, including the columns from the error.
The character set and collation are utf8mb3 and utf8mb3_bin, respectively. The first column is the table name.
Thank you for your help.
Did you run mysql_upgrade after the upgrade of mysql8 ?
Hi @Jonathan Cooper ,
the secondo command is wrong. In order to restore DB from dump you should use "mysql" and not "mysqldump" command.
mysql -u confluence -p confluence < D:\mysql-backups\mysql5.7-nofurthercollation.sql
Please could you check?
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apologies, that was a typo on my part. I did use the correct command you said.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.