溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

mysql8 常見(jiàn)錯(cuò)誤

發(fā)布時(shí)間:2020-08-10 23:47:30 來(lái)源:ITPUB博客 閱讀:1334 作者:e71hao 欄目:MySQL數(shù)據(jù)庫(kù)

1. ERROR 2061 (HY000): Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection.

【分析】mysql8默認(rèn)使用插件caching_sha2_password,有些client連接報(bào)這個(gè)錯(cuò)誤,需要拿到server的public key來(lái)加密password。

【解決】加參數(shù)可以解決:--get-server-public-key

 mysql -u sha2user -p --get-server-public-key。做主從復(fù)制的時(shí)候也會(huì)碰到這種情況,加餐get_master_public_key=1;

 change master to 

    master_host='192.168.2.135',

    master_port=3306,

    master_user='repl_user',

    master_password='123456',

    master_auto_position=1 ,

    get_master_public_key=1;

2.Multiple files found for the same tablespace ID:

2019-10-22T15:27:22.848885+08:00 1 [ERROR] [MY-012209] [InnoDB] Multiple files found for the same tablespace ID:

2019-10-22T15:27:22.848904+08:00 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 1 = ['sys/sys_config.ibd', 'sys/sys_config.ibd']

2019-10-22T15:27:22.848915+08:00 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 15 = ['test/t.ibd', 'test/t.ibd']

2019-10-22T15:27:22.848922+08:00 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 4294967278 = ['undo_002', 'undo_002']

2019-10-22T15:27:22.848932+08:00 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 4294967279 = ['undo_001', 'undo_001']

2019-10-22T15:27:22.848939+08:00 1 [ERROR] [MY-012202] [InnoDB] Tablespace ID: 4294967294 = ['mysql.ibd', 'mysql.ibd']

2019-10-22T15:27:22.848952+08:00 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Failed, retry may succeed.

2019-10-22T15:27:22.849080+08:00 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine

2019-10-22T15:27:22.849297+08:00 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.

【解答】啟動(dòng)文件加參數(shù)innodb_directories="/data/mysqldata;"

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI