mysql 错误 2061_mysql8 常见错误

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;"

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值