Je reçois l'erreur suivante lors de la mise à niveau de 5.0.45 à 5.1.42. Dois-je utiliser mysql_upgrade ou mysqlcheck?mysql upgrade (5.0.45 à 5.1.42) erreur
Causée par: java.sql.SQLException: le nombre de colonnes de mysql.proc est incorrect. Prévu 20, trouvé 16. Créé avec MySQL 50045, maintenant 50142. Veuillez utiliser mysql_upgrade pour corriger cette erreur.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1761)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2046)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1964)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1949)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:792)
at org.springframework.jdbc.core.JdbcTemplate$2.doInPreparedStatement(JdbcTemplate.java:1)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:586)
laissez-moi essayer et je reviendrai à vous ... – user476554
Si vous avez toujours le même problème après faire mysql_upgrade', faites-le à nouveau avec l'option '--force'. Je me suis arrangé avec ça. –