mysql plugin 没有_无法打开mysql.plugin表。某些插件可能未加载

在尝试启动MySQL时遇到错误,显示无法打开mysql.plugin表,导致一些插件未能加载。错误日志还提及数据库未正常关闭及InnoDB的恢复过程。解决方案包括停止服务,清除数据目录,重新初始化数据库并启动服务。
摘要由CSDN通过智能技术生成

bd96500e110b49cbb3cd949968f18be7.png

I have an issue with MySQL. When I'm trying to start it, that gives me an error message, which is

2015-12-10 10:52:31 13f4 InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.

2015-12-10 10:52:31 5108 [Note] InnoDB: Using mutexes to ref count buffer pool pages

2015-12-10 10:52:31 5108 [Note] InnoDB: The InnoDB memory heap is disabled

2015-12-10 10:52:31 5108 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions

2015-12-10 10:52:31 5108 [Note] InnoDB: Memory barrier is not used

2015-12-10 10:52:31 5108 [Note] InnoDB: Compressed tables use zlib 1.2.3

2015-12-10 10:52:31 5108 [Note] InnoDB: Not using CPU crc32 instructions

2015-12-10 10:52:31 5108 [Note] InnoDB: Initializing buffer pool, size = 16.0M

2015-12-10 10:52:31 5108 [Note] InnoDB: Completed initialization of buffer pool

2015-12-10 10:52:31 5108 [Note] InnoDB: Highest supported file format is Barracuda.

2015-12-10 10:52:31 5108 [Note] InnoDB: The log sequence numbers 1902092 and 1902092 in ibdata files do not match the log sequence number 1902102 in the ib_logfiles!

2015-12-10 10:52:31 5108 [Note] InnoDB: Database was not shutdown normally!

2015-12-10 10:52:31 5108 [Note] InnoDB: Starting crash recovery.

2015-12-10 10:52:31 5108 [Note] InnoDB: Reading tablespace information from the .ibd files...

2015-12-10 10:52:31 5108 [Note] InnoDB: Restoring possible half-written data pages

2015-12-10 10:52:31 5108 [Note] InnoDB: from the doublewrite buffer...

2015-12-10 10:52:31 5108 [Note] InnoDB: 128 rollback segment(s) are active.

2015-12-10 10:52:31 5108 [Note] InnoDB: Waiting for purge to start

2015-12-10 10:52:32 5108 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1902102

2015-12-10 10:52:32 1760 [Note] InnoDB: Dumping buffer pool(s) not yet started

2015-12-10 10:52:32 5108 [Note] Plugin 'FEEDBACK' is disabled.

2015-12-10 10:52:32 5108 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded

2015-12-10 10:52:32 5108 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist

2015-12-10 10:52:32 5108 [Note] Server socket created on IP: '::'.

2015-12-10 10:52:32 5108 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist

I changed to InnoDB yesterday, but no problems were found. Any ideas?

解决方案

These instructions worked for me in a fresh install of MariaDB in Arch Linux:

systemctl stop mariadb

rm -R /var/lib/mysql/*

mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql

systemctl start mariadb

当本地MySQL数据库报错"Unable to load authentication plugin 'caching_sha2_password'"时,这通常是因为MySQL 8.0版本默认使用"caching_sha2_password"身份验证机制,而旧版本使用的是"mysql_native_password"。为了解决这个问题,有两种方式可以尝试。 第一种方式是安装MySQL 8.0或更新版本的客户端软件,例如可视化软件,并使用该客户端连接MySQL数据库。这样就可以绕过报错。 第二种方式是修改MySQL 8.0的密码加密方式。具体操作如下: 1. 以root用户登录到MySQL数据库。 2. 运行以下命令以修改root用户的密码加密方式为"mysql_native_password": ALTER<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [mysql报错Unable to load authentication plugin ‘caching_sha2_password‘.](https://blog.csdn.net/dzhou1991/article/details/116789387)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [问题:MySQL 报错 Unable to load authentication plugin ‘caching_sha2_password‘ 的解决方案](https://blog.csdn.net/qq_36722955/article/details/128720577)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [mysql8用navicat可视化连接报错加密方式错误](https://download.csdn.net/download/qq_41975509/11117766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值