Los die waarskuwing op: databasisfout Kolomtelling van mysql.proc is verkeerd.

Trouens, as jy phpMyAdmin gebruik , sal jy nie kan vind waar die fout is nie.

  • Die probleem is omdat jy MariaDB ofMySQL databasisweergawe.
  • Gradeer MariaDB op ofMySQLNa die databasisweergawe word die datastrukture nie gebruik niemysql_upgradeopdrag om die opgraderingsopdatering te voltooi.
  • Daarna, tydens die werking van die MySQL-databasis, kan foutboodskappe vertoon word.

Los die waarskuwing op: databasisfout Kolomtelling van mysql.proc is verkeerd.

Die WordPress-inprop het die volgende fout tydens die outomatiese rugsteunproses teëgekom: ▼

Waarskuwing: Databasisfout Kolomtelling van mysql.proc is verkeerd. Verwag 21, gevind 20. Geskep met MariaDB 50560, loop nou 100406. Gebruik asseblief mysql_upgrade om hierdie fout reg te stel Navraag WYS FUNKSIE STATUS

  • mysql.proc Dit is 'n stelseltabel in 5.1 wat inligting oor gestoorde prosedures of funksies aanteken.

Hoe om die waarskuwing reg te stel: Databasisfout Kolomtelling van mysql.proc is verkeerd?

Die volgende is 'n oplossing wat deur Chen Weiliang aangeteken is.

Stap 1: Die veiligste benadering is om eers 'n storting of koue rugsteun uit te voer:

mysqldump -uroot -p123456 --quick --master-data=1 --all-databases --flush-logs --lock-tables >
  • Verander asseblief die bogenoemde "123456" na jou MySQL-wortelwagwoord.

Stap 2:gebruik die volgendemysql_upgrade bevel om op te los

mysql_upgrade -u root --datadir=/var/lib/mysql/ --basedir=/ --password=123456

Die volgende is die SSH-demonstrasie-operasieproses▼

[root@db lib]# mysql_upgrade -u root -p123456 -hdb --datadir=/var/lib/mysql/ --basedir=/
mysql_upgrade: the '--datadir' option is always ignored
mysql_upgrade: the '--basedir' option is always ignored
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--host=db'
Running 'mysqlcheck' with connection arguments: '--host=db'
mysql.columns_priv                                OK
mysql.db                                          OK
mysql.event                                       OK
mysql.func                                        OK
mysql.general_log
Error   : You can't use locks with log tables.
status  : OK
mysql.help_category                               OK
mysql.help_keyword                                OK
mysql.help_relation                               OK
mysql.help_topic                                  OK
mysql.host                                        OK
mysql.ndb_binlog_index                            OK
mysql.plugin                                      OK
mysql.proc                                        OK
mysql.procs_priv                                  OK
mysql.servers                                     OK
mysql.slow_log
Error   : You can't use locks with log tables.
status  : OK
mysql.student                                     OK
mysql.t1                                          OK
mysql.t2                                          OK
mysql.tables_priv                                 OK
mysql.time_zone                                   OK
mysql.time_zone_leap_second                       OK
mysql.time_zone_name                              OK
mysql.time_zone_transition                        OK
mysql.time_zone_transition_type                   OK
mysql.user                                        OK
................................................
test.newuser                                      OK
test.usertag                                      OK
Running 'mysql_fix_privilege_tables'...
WARNING: NULL values of the 'character_set_client' column ('mysql.proc' table) have been updated with a default value (latin1). Please verify if necessary.
WARNING: NULL values of the 'collation_connection' column ('mysql.proc' table) have been updated with a default value (latin1_swedish_ci). Please verify if necessary.
WARNING: NULL values of the 'db_collation' column ('mysql.proc' table) have been updated with default values. Please verify if necessary.
OK
[root@db lib]#

Daar is meer oplossings vir MySQL-databasisprobleme hieronder▼

发表 评论

您的邮箱地址不会被公开。必填项已用*标注

Scroll na bo