lua 连接MySQL报错 mysql.cant_connect: errno:1251, sql_state:08004解决办法

lua 连接MySQL mysql.cant_connect: ***consider upgrading MySQL client, errno:1251, sql_state:08004

解决方案(亲测)
在mysql里分别输入

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'

**password是root的password

flush privileges;

你可能感兴趣的:(lua 连接MySQL报错 mysql.cant_connect: errno:1251, sql_state:08004解决办法)