使用ubuntu安装的mysql8
使用debian库生成的debian-sys-maint账户登录mysql
然后可以使用
ALTER USER 'jeffrey'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'new_password'
修改密码。
参数 caching_sha2_password可以改成 mysql_native_password以兼容老版本
使用ubuntu安装的mysql8
使用debian库生成的debian-sys-maint账户登录mysql
然后可以使用
ALTER USER 'jeffrey'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'new_password'
修改密码。
参数 caching_sha2_password可以改成 mysql_native_password以兼容老版本