1. 程式人生 > >mysql跳過密碼驗證

mysql跳過密碼驗證

 vi /etc/my.cnf
[client]
port            = 3306
socket          = /tmp/mysql.sock
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
skip-grant-tables
service mysqld restart
mysql
show databases;