全部博文(73)
分类: Mysql/postgreSQL
2012-01-12 12:21:03
1. >GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "kernel";
2. sudo vi /etc/mysql/my.cnf
在旧版本中找到 skip-networking,把它注释掉就可以了
#skip-networking
在新版本中:
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1 这一行要注释掉
或者把允许访问的 ip 填上
#bind-address = 192.168.1.100
3.然后重启 MySQL
$> sudo /etc/init.d/mysql restart
* Starting MySQL database server mysqld
mysqldump -uroot -p