|
devilkin0312 发表于 2011-11-29 11:02 ![]()
1.加上-skip-networking 后,# Don't listen on a TCP/IP port at all. 远程无法登录: 本地可以登录
2.授 ...
#[/usr/local/mysql/bin]./mysql -u root -p
Enter password: ********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.90 MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> select host from user where user='root';
+-----------+
| host |
+-----------+
| 127.0.0.1 |
| imcif02 |
| localhost |
+-----------+
3 rows in set (0.03 sec)
以上是我的内容。
您的sql中,是允许test用户以test密码,访问test数据库的test表吗? |
|