切换到percona server各种问题

这两天把七八台服务器全部切换到了percona server,相关注意事项如下:

1、JDBC报ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.
2、sql_mode参数PAD_CHAR_TO_FULL_LENGTH,可能会导致有些数据导入空格填充而业务不正确。
3、mariadb切换过来会有“event表中sql_mode、definer长度问题”,.err中日志如下:

2016-08-28 08:13:53 366 [ERROR] Incorrect definition of table mysql.event: expected column 'definer' at position 3 to have type char(77), found type char(141).

2016-08-28 08:13:53 366 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.

解决方法:从正常的percona server把event定义拷贝过来,mysql_upgrade对于mariadb有些表考虑不是很到位。

其他的可能不兼容系统表可参考http://planet.mysql.com/entry/?id=2007886。

posted @ 2016-08-16 10:21  zhjh256  阅读(630)  评论(0编辑  收藏  举报