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 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表只讀,無法正常開啟。
檢視對應資料目錄的許可權,已經授予了mysql的所屬許可權。
[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作業系統使用者的許可權被修改,無法進入資料目錄,進而導致報錯。
資料目錄是/data/mysql_3307,mysql作業系統使用者無法進入/data。
修改許可權後,恢復正常。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-2284295/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [ERROR] mysqld: Can‘t open shared library ‘/usr/local/mysql/lib/plugin/validate_password.so‘ (errno:ErrorMySqlPlugin
- MYSQL報1022錯誤:Can't write;duplicate key in table '.....'MySql
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- Can't open file: (errno: 24)
- mysql中You can’t specify target table for update in FROM clMySql
- MySQL 中出現報錯提示: ‘Variable ‘XXX‘ is a read only variable‘的解決方法MySql
- linux下連線mysql報錯ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysqLinuxMySqlErrorServer
- eslint --fix 報錯 can't not find modulesEsLint
- 【報錯】elasticsearch 報錯blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]ElasticsearchBloCORBIndexdeleteAPI
- 阿里雲 Redis 報出You can't read against a non-read redis.解決方案阿里RedisAI
- mysql 啟動報錯Can't connect to local MySQL server through socket '/data/mysql/mysql/mysql.sock'(111)MySqlServer
- MySQL:Table_open_cache_hits/Table_open_cache_misses/Table_open_cache_overflowsMySql
- Python報錯:UnicodeDecodeError: 'gbk' codec can't decode byte ...PythonUnicodeError
- You can‘t specify target table ‘Person‘ for update in FROM clause
- Can GoldenGate Replicate An Oracle Table That Contains Only CLOB Column(s)? (Doc ID 971833.1)GoOracleAI
- MySQL 2003 - Can’t connect to MySQL server on (10060)MySqlServer
- Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock錯誤MySqlServer
- Error:Can't connect to SOCKS proxy:Connection refused (Connection refused)Error
- FileZilla:425 Can't open data connection for transfer of解決辦法
- Can't Connect to MySQL Server on IP Address (10061) 錯誤的解決方案MySqlServer
- Fatal error: can't check configuration file '/home/watt/proxy/dError
- 解決ERROR 1231 (42000): Variable 'time_zone' can'tError
- 小程式真機報錯errMsg: “hideLoading:fail:toast can‘t be found“ ?IDEAIAST
- mysql遇到Variable can’t be set to the value of ‘NULL’MySqlNull
- Only AI Flow Can Do!AI
- Caused by: org.apache.parquet.io.ParquetDecodingException: Can‘t read value in column [result, labelApacheException
- 使用monaco編輯器 報錯Can only have one anonymous define call per script file
- AndroidStudio之自定義輸出包名報錯 Cannot set the value of read-only property 'outputFile' forAndroid
- 執行新增和修改操作報錯connection is read-only. Queries leading to data modification are not allowed
- 報錯-only final is permittedMIT
- mysql報錯Changed limits: max_open_files: 5000MySqlMIT
- mysqldump匯出報錯"mysqldump: Error 2013 ... during query when dumping tableMySqlError
- 完美解決stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.ErrorPython
- ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAError
- ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command failed with eiOSErrorAI
- oracle ocp 19c考題,科目082考試題(21)-read-only tableOracle
- 記錄redis佇列read error on connection to錯誤Redis佇列Error
- Mysql:Variable 'XXXt' can't be set to the value of 'NULL'解決MySqlNull