WordPress插件在自动备份过程期间,发生以下错误 ▼
警告: 数据库错误 Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 50560, now running 100406. Please use mysql_upgrade to fix this error 查询 SHOW FUNCTION STATUS
如何解决警告:数据库错误 Column count of mysql.proc is wrong?
以下是陈沩亮记录的解决方案。
第 1 步:保险做法是先dump或冷备份:
mysqldump -uroot -p123456 --quick --master-data=1 --all-databases --flush-logs --lock-tables >
第 2 步:使用以下mysql_upgrade
命令来解决
mysql_upgrade -u root --datadir=/var/lib/mysql/ --basedir=/ --password=123456
以下是SSH示范操作过程 ▼
[[email protected] 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 [[email protected] lib]#
以下还有更多MySQL数据库问题的解决方法 ▼
VestaCP/CWP/CentOS 7如何更新/升级到MariaDB10.10.2?
在本教程将指导你如何在Centos 7上,将MariaDB升级/安装到最新的Mariadb10.10.2版本。本教程也适用于CWP和VestaCP或任何其他兼容的VPS服务器控制面板。MariaDB 10.10.2现在非常稳定……
如何解决WordPress主题{{unknown}} oembed_cache问题?
begin主题如何解决{{unknown}} oembed_cache?有新媒体人刚学会WordPress建站,使用的是知更鸟begin主题。发现{{unknown}}、oembed_cache错误在phpMyAdmin检查MySQL数据库时,发现出现……
mysqld数据表错误is marked as crashed and last (automatic?) repair解决办法
mysqld数据表错误is marked as crashed and last (automatic?) repair解决办法本文章来给大家介绍我们在修复表时提示Error: Table \’./db_name/table_name\’ is marked as crashed and last……
MySQL警告:Found row where the auto_increment colum
如果电商网站管理员有足够的权限,可通过phpMyAdmin数据库控制面板,对MySQL数据库进行维护操作。当数据库出现错误时,可以给WordPress数据库进行表维护 “分析” 或 “检查”。但可能接着会……