|
|
debian 安装好了mysql
mysql -u root -p 可以访问
安装好 mysql-query-brower 后
输入地址 127.0.0.1 usr: root password:****
Could not connect to host '127.0.0.1'.
MySQL Error Nr. 1130
Host 'localhost.localdomain' is not allowed to connect to this MySQL server
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.3.111 mydomin.com.cn chenj
/etc/mysql/my.conf 片段
[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
#skip-external-locking
#
# 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
#
# * Fine Tuning
#
请大家帮我看看什么问题? |
|