在本地登录mysql,每次都要输入密码,[email protected],还有什么不能操作
确保是root,执行如下命令:
# vi ~/.my.cnf
[client]
host=localhost
user='root'
password='password'
# chmod 700 ~/.my.cnf
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/3895.html