我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

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


新闻名称:mysql8常见错误-创新互联
文章URL:http://mswzjz.cn/article/dioohd.html

其他资讯