MySQL报错Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么办
发表于:2026-10-31 作者:千家信息网编辑
千家信息网最后更新 2026年10月31日,这篇文章主要为大家展示了"MySQL报错Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么办",内容简而易懂
千家信息网最后更新 2026年10月31日MySQL报错Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么办
这篇文章主要为大家展示了"MySQL报错Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么办",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"MySQL报错Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么办"这篇文章吧。
迁移MySQL数据库的时候,发生了下面的报错
181205 14:10:22 mysqld_safe Starting mysqld daemon with databases from /data/mysql_3308/2018-12-05 14:10:22 18964 [Warning] You need to use --log-bin to make --log-slave-updates work.2018-12-05 14:10:22 18964 [Warning] You need to use --log-bin to make --binlog-format work.2018-12-05 14:10:22 18964 [Note] Plugin 'FEDERATED' is disabled./usr/sbin/mysqld: Table 'plugin' is read only2018-12-05 14:10:22 18964 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.2018-12-05 14:10:22 7fe3f219b740 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.2018-12-05 14:10:22 18964 [Note] InnoDB: Using atomics to ref count buffer pool pages2018-12-05 14:10:22 18964 [Note] InnoDB: The InnoDB memory heap is disabled2018-12-05 14:10:22 18964 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins2018-12-05 14:10:22 18964 [Note] InnoDB: Memory barrier is not used2018-12-05 14:10:22 18964 [Note] InnoDB: Compressed tables use zlib 1.2.32018-12-05 14:10:22 18964 [Note] InnoDB: Using Linux native AIO2018-12-05 14:10:22 18964 [Note] InnoDB: Using CPU crc32 instructions2018-12-05 14:10:22 18964 [Note] InnoDB: Initializing buffer pool, size = 4.0G2018-12-05 14:10:22 18964 [Note] InnoDB: Completed initialization of buffer pool2018-12-05 14:10:23 18964 [Note] InnoDB: Highest supported file format is Barracuda.2018-12-05 14:10:23 18964 [Note] InnoDB: 128 rollback segment(s) are active.2018-12-05 14:10:23 18964 [Note] InnoDB: Waiting for purge to start06:10:23 UTC - mysqld got signal 11 ;This could be because you hit a bug. It is also possible that this binaryor one of the libraries it was linked against is corrupt, improperly built,or misconfigured. This error can also be caused by malfunctioning hardware.We will try our best to scrape up some info that will hopefully helpdiagnose the problem, but since we have already crashed,something is definitely wrong and this may fail.key_buffer_size=8388608read_buffer_size=131072max_used_connections=0max_threads=2000thread_count=0connection_count=0It is possible that mysqld could use up tokey_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 4387598 K bytes of memoryHope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x0Attempting backtrace. You can use the following information to find outwhere mysqld died. If you see no messages after this, something wentterribly wrong...stack_bottom = 0 thread_stack 0x40000/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0x8dd30b]/usr/sbin/mysqld(handle_fatal_signal+0x491)[0x6720b1]/lib64/libpthread.so.0(+0xf6d0)[0x7fe3f1d7c6d0]/usr/sbin/mysqld(my_realpath+0x87)[0x8da5d7]/usr/sbin/mysqld(_Z19find_or_create_fileP10PFS_threadP14PFS_file_classPKcjb+0x9c)[0xabaddc]
报错提示plugin表只读,无法正常打开。
查看对应数据目录的权限,已经授予了mysql的所属权限。
[root@bi-multi-mysql-d9 mysql_3307]# ls -trltotal 3621384drwxr-xr-x 2 mysql2 mysql2 10 Jul 13 2017 test-rwxr-xr-x 1 mysql2 mysql2 536870912 Jul 13 2017 ib_logfile1-rwxr-xr-x 1 mysql2 mysql2 536870912 Jul 13 2017 ib_logfile2drwxr-xr-x 2 mysql2 mysql2 4096 Jul 13 2017 performance_schema-rwxr-xr-x 1 mysql2 mysql2 431 Jul 13 2017 mysql-bin.000001drwxr-xr-x 2 mysql2 mysql2 8192 Jul 13 2017 mysql-rwxr-xr-x 1 mysql2 mysql2 143 Jul 13 2017 mysql-bin.000002-rwxr-xr-x 1 mysql2 mysql2 57 Jul 13 2017 mysql-bin.index-rwxr-xr-x 1 mysql2 mysql2 56 Jul 13 2017 auto.cnf-rwxr-xr-x 1 mysql2 mysql2 109302 Jul 14 2017 mysql-bin.000003drwxr-xr-x 2 mysql2 mysql2 4096 Sep 29 09:12 jolly_alliance_center-rwxr-xr-x 1 mysql2 mysql2 221 Dec 5 12:20 mysqld-relay-bin.000670-rwxr-xr-x 1 mysql2 mysql2 52 Dec 5 12:20 mysqld-relay-bin.index-rwxr-xr-x 1 mysql2 mysql2 69 Dec 5 15:08 relay-log.info-rwxr-xr-x 1 mysql2 mysql2 358775 Dec 5 15:08 mysqld-relay-bin.000671-rwxr-xr-x 1 mysql2 mysql2 137 Dec 5 15:08 master.info-rwxr-xr-x 1 mysql2 mysql2 536870912 Dec 5 16:37 ib_logfile0-rwxr-xr-x 1 mysql2 mysql2 1048576000 Dec 5 16:37 ibdata2-rwxr-xr-x 1 mysql2 mysql2 1048576000 Dec 5 16:37 ibdata1
报错的原因:
mysql操作系统用户的权限被修改,无法进入数据目录,进而导致报错。
数据目录是/data/mysql_3307,mysql操作系统用户无法进入/data。
修改权限后,恢复正常。
以上是"MySQL报错Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么办"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!
数据
权限
怎么办
内容
目录
篇文章
操作系统
用户
系统
学习
帮助
原因
所属
数据库
时候
易懂
更多
条理
知识
编带
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
手冲咖啡和咖啡机区别
为想互联网科技怎么样
科技与互联网
互联网科技深圳
涨乐互联网科技
互联网 科技创新
卓越科技(互联网 )
郑州华宇互联网科技
互联网科技公司介绍
滨湖区互联网智能科技产品供应
北京大学互联网科技怎么样
宁夏科技产业互联网案例
移动互联网年度科技创新
洛阳共同富裕互联网科技有限公司
滨湖区互联网智能科技产品有哪些
互联网科技企业商标注意事项
万物互联网智能科技
陕西九四连强互联网科技有限公司
西安左小互联网科技有限公司
马化腾互联网科技教学
南京欣网互联网络科技有限公司
互联网科技卖菜
中国互联网科技发展
北京互联网络科技有限公司
唐信互联网科技 大连
互联网科技咨询
汉立互联网科技有限公司联系电话
未来五年的互联网科技
深圳市罗太互联网科技有限公司
区块链结合互联网科技