mysql免密登陸

有時候有人想偷懶,直接免密登陸mysql。能夠按照如下方法操做mysql 1.編輯配置文件sql vim /root/.my.cnfvim[client] user=root password=123 2.修改權限 spa chmod 400 ~/.my.cnf 3.登陸查看input [root@localhost ~]# mysql Welcome to the MySQL monitor. 
相關文章
相關標籤/搜索