mysql skipnetworking_MYSQL-skip-networking

1、跳过tcp/ip协议通信:

[mysqld]

# The TCP/IP Port the MySQL Server will listen on

port=3306

#log_output=TABLE

skip-networking  #添加这一行

然后重启服务

2、测试连接:

C:\Documents and Settings\Administrator>mysql -u root -p

Enter password:

ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

可以看出连接mysql失败,那么我们没有了tcp/ip协议我们在本地如何连接呢?

3、通过参数--protocol=pipe:

C:\Documents and Settings\Administrator>mysql --protocol=pipe -u root -

Enter password:

ERROR 2017 (HY000): Can't open named pipe to host: .  pipe: MySQL (2)

可以看出连接失败了!

那么我们试试添加:enable-named-pipe

如:

[mysqld]

# The TCP/IP Port the MySQL Server will listen on

port=3306

#log_output=TABLE

skip-networking


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部