mysql 在配置文件中保存密码

mysql 在配置文件中保存密码

  1. 打开配置文件
nano /etc/my.cnf
  1. 添加
[client]
host=localhost
user=root
password='123456'

你可能感兴趣的:(工具使用)