1.error 2061 (hy000): authentication plugin 'caching_sha2_password' reported error: authentication requires secure connection.
【分析】mysql8預設使用外掛程式caching_sha2_password,有些client連線報這個錯誤,需要拿到server的public key來加密password。
【解決】加引數可以解決:--get-server-public-key
mysql -u sha2user -p --get-server-public-key。做主從複製的時候也會碰到這種情況,加餐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.
【解答】啟動檔案加引數innodb_directories="/data/mysqldata;"
Error C2061 語法錯誤
這就是報錯資訊,明明已經進行了標識,但編譯就還是會出錯。更奇葩的是,自定義函式中本就乙個引數,但卻說該函式不接受乙個引數,很是無語。折騰了一陣子終於找到了問題的所在。這是因為標頭檔案進行了巢狀,使得編譯器重定義標示符,重複包含標頭檔案,而導致這樣了編譯錯誤 如a標頭檔案包含了b標頭檔案,b標頭檔案又...
mysql10067錯誤 如何安裝MySQL資料庫
2.解壓mysql安裝包到指定目錄,我的目錄為c mysql,並複製乙份my default.ini檔案備用。修改my default.ini檔案 basedir c mysql datadir c mysql data port 3306 注意 去掉原始檔上述三行前面的 新增環境變數 新建系統變數...
解決sqoop連線mysq錯誤
一 問題描述 1.由於當前集群沒有配置zookeeper hcatalog accumlo,因此應該在sqoop的配置檔案中注釋掉判斷zookeeper hcatalog accumlo路徑是否正確的 二 解決辦法 vim usr local sqoop bin configure sqoop 將如...