mysql删除用户错误怎么办
admin
2023-02-24 09:20:03
0

本文主要给大家简单讲讲mysql删除用户错误怎么办,相关专业术语大家可以上网查查或者找一些相关书籍补充一下,这里就不涉猎了,我们就直奔主题吧,希望mysql删除用户错误怎么办这篇文章可以给大家带来一些实际帮助。

1、错误提示

ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 42. Created with MySQL 50560, now running 50645. Please use mysql_upgrade to fix this error.

意思是数据库以前做过升级但是数据库里的mysql库没有升级导致的权限混乱
2、解决办法
升级数据库使用命令
mysql_upgrade -uroot -p ‘密码’

Enter password:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
mysql.columns_priv                                 OK
mysql.db                                           OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  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.proxies_priv                                 OK
mysql.servers                                      OK
mysql.slow_log                                     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
Running 'mysql_fix_privilege_tables'...
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
Running 'mysqlcheck with default connection arguments
Warning: Using a password on the command line interface can be insecure.
mysqlcheck: Got error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.2_b_cloud_provider  FOR UPGRADE' at line 1 when executing 'CHECK TABLE ...  FOR UPGRADE'
cb-fetch-data-pre.cron_task                        OK
cb-fetch-data-pre.cron_task_result                 OK
cb-fetch-data-pre.xxl_job_qrtz_blob_triggers       OK
cb-fetch-data-pre.xxl_job_qrtz_calendars           OK
cb-fetch-data-pre.xxl_job_qrtz_cron_triggers       OK
cb-fetch-data-pre.xxl_job_qrtz_fired_triggers      OK
cb-fetch-data-pre.xxl_job_qrtz_job_details         OK
cb-fetch-data-pre.xxl_job_qrtz_locks               OK
cb-fetch-data-pre.xxl_job_qrtz_paused_trigger_grps OK
cb-fetch-data-pre.xxl_job_qrtz_scheduler_state     OK
cb-fetch-data-pre.xxl_job_qrtz_simple_triggers     OK
cb-fetch-data-pre.xxl_job_qrtz_simprop_triggers    OK
cb-fetch-data-pre.xxl_job_qrtz_trigger_group       OK
cb-fetch-data-pre.xxl_job_qrtz_trigger_info        OK
cb-fetch-data-pre.xxl_job_qrtz_trigger_log         OK
cb-fetch-data-pre.xxl_job_qrtz_trigger_logglue     OK
cb-fetch-data-pre.xxl_job_qrtz_trigger_registry    OK
cb-fetch-data-pre.xxl_job_qrtz_triggers            OK
cloudbest-index-point-pre.b_cloud_provider         OK
cloudbest-index-point-pre.cron_task                OK
cloudbest-index-point-pre.cron_task_result_2019_09 OK
cloudbest-index-point-pre.cron_task_result_2019_10 OK
cloudbest-index-point-pre.cron_task_result_2019_11 OK
cloudbest-index-point-pre.cron_task_result_2019_12 OK
cloudbest-index-point-pre.cron_task_result_2020_01 OK
cloudbest-index-point-pre.cron_task_result_2020_02 OK
cloudbest-index-point-pre.cron_task_result_2020_03 OK
cloudbest-index-point-pre.cron_task_result_2020_04 OK
cloudbest-index-point-pre.cron_task_result_2020_05 OK
cloudbest-index-point-pre.cron_task_result_2020_06 OK
cloudbest-index-point-pre.cron_task_result_2020_07 OK
cloudbest-index-point-pre.cron_task_result_2020_08 OK
cloudbest-index-point-pre.cron_task_result_2020_09 OK
cloudbest-index-point-pre.i_index_rank             OK
cloudbest-index-point-pre.i_instances              OK
cloudbest-index-point-pre.i_model                  OK
cloudbest-index-point-pre.i_model_price            OK
cloudbest-index-point-pre.i_performance_reportes   OK
cloudbest-index-point-pre.i_region                 OK
cloudbest-index-point-pre.statistic_index          OK
cloudbest-market.ddos_accounts                     OK
cloudbest-market.ddos_custom                       OK
cloudbest-market.ddos_shield_info                  OK
cloudbest-market.ddos_task_queue                   OK
cloudbest-order.cb_order                           OK
FATAL ERROR: Error during call to mysql_check for upgrading the tables names on all db(s) except mysql

最后一个错误是因为其他的数据库表没法更改,这个不会影响。 到这算是解决上面的错误。权限可以正常使用了

mysql删除用户错误怎么办就先给大家讲到这里,对于其它相关问题大家想要了解的可以持续关注我们的行业资讯。我们的板块内容每天都会捕捉一些行业新闻及专业知识分享给大家的。

相关内容

热门资讯

【第一消息】“开心跑胡子到底有... 【第一消息】“开心跑胡子到底有挂吗?”(太坑了原来有挂)您好,开心跑胡子这个游戏其实有挂的,确实是有...
终于懂了“趣友麻将是不是有挂?... 网上科普关于“趣友麻将有没有挂”话题很是火热,小编也是针对趣友麻将作*弊开挂的方法以及开挂对应的知识...
【第一资讯】“今日长牌到底是不... 【第一资讯】“今日长牌到底是不是挂?”(太坑了果然有挂)您好,今日长牌这个游戏其实有挂的,确实是有挂...
【第一消息】“花花生活圈到底是... 家人们!今天小编来为大家解答花花生活圈透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买...
今日重大发现“神皇炸/金/花到... 您好:神皇炸/金/花这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9752949】很多玩家在这...
重磅消息“华龙棋牌到底有挂吗?... 有 亲,根据资深记者爆料华龙棋牌是可以开挂的,确实有挂(咨询软件无需打开...
玩家最新攻略“甘孜娱乐中心究竟... 有 亲,根据资深记者爆料甘孜娱乐中心是可以开挂的,确实有挂(咨询软件无需...
终于懂了“TT语音有没有挂?”... 家人们!今天小编来为大家解答TT语音透视挂怎么安装这个问题咨询软件客服徽9752949的挂在哪里买很...
今日重大发现“秦乐陕西麻将开挂... 网上科普关于“秦乐陕西麻将有没有挂”话题很是火热,小编也是针对秦乐陕西麻将作*弊开挂的方法以及开挂对...
重磅消息“网易麻将怎么装挂?”... 有 亲,根据资深记者爆料网易麻将是可以开挂的,确实有挂(咨询软件无需打开...