這篇文章主要為大家展示了“MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么辦”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么辦”這篇文章吧。
創(chuàng)新互聯(lián)建站是一家專業(yè)提供陸港企業(yè)網(wǎng)站建設,專注與成都做網(wǎng)站、成都網(wǎng)站建設、H5高端網(wǎng)站建設、小程序制作等業(yè)務。10年已為陸港眾多企業(yè)、政府機構(gòu)等服務。創(chuàng)新互聯(lián)專業(yè)網(wǎng)站建設公司優(yōu)惠進行中。
遷移MySQL數(shù)據(jù)庫的時候,發(fā)生了下面的報錯
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 only 2018-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 pages 2018-12-05 14:10:22 18964 [Note] InnoDB: The InnoDB memory heap is disabled 2018-12-05 14:10:22 18964 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-12-05 14:10:22 18964 [Note] InnoDB: Memory barrier is not used 2018-12-05 14:10:22 18964 [Note] InnoDB: Compressed tables use zlib 1.2.3 2018-12-05 14:10:22 18964 [Note] InnoDB: Using Linux native AIO 2018-12-05 14:10:22 18964 [Note] InnoDB: Using CPU crc32 instructions 2018-12-05 14:10:22 18964 [Note] InnoDB: Initializing buffer pool, size = 4.0G 2018-12-05 14:10:22 18964 [Note] InnoDB: Completed initialization of buffer pool 2018-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 start 06:10:23 UTC - mysqld got signal 11 ; This could be because you hit a bug. It is also possible that this binary or 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 help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=8388608 read_buffer_size=131072 max_used_connections=0 max_threads=2000 thread_count=0 connection_count=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 4387598 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly 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表只讀,無法正常打開。
查看對應數(shù)據(jù)目錄的權(quán)限,已經(jīng)授予了mysql的所屬權(quán)限。
[root@bi-multi-mysql-d9 mysql_3307]# ls -trl total 3621384 drwxr-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_logfile2 drwxr-xr-x 2 mysql2 mysql2 4096 Jul 13 2017 performance_schema -rwxr-xr-x 1 mysql2 mysql2 431 Jul 13 2017 mysql-bin.000001 drwxr-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.000003 drwxr-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操作系統(tǒng)用戶的權(quán)限被修改,無法進入數(shù)據(jù)目錄,進而導致報錯。
數(shù)據(jù)目錄是/data/mysql_3307,mysql操作系統(tǒng)用戶無法進入/data。
修改權(quán)限后,恢復正常。
以上是“MySQL報錯Table 'plugin' is read only [ERROR] Can't open the mysql.plugin table怎么辦”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
網(wǎng)站題目:MySQL報錯Table'plugin'isreadonly[ERROR]Can'topenthemysql.plugintable怎么辦
網(wǎng)頁鏈接:http://aaarwkj.com/article16/gjjdgg.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供軟件開發(fā)、定制網(wǎng)站、定制開發(fā)、品牌網(wǎng)站制作、手機網(wǎng)站建設、標簽優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)