Error No. 2003: Can't connect to MySQL server on 'localhost' (or some other host)

Error No. 2003: Can't connect to MySQL server on 'localhost' (or some other host)

 

    simply means that connection is not possible for one of the following (or similar) reasons:

 

1.There is no MySQL server running at the specified host

2.Connection to the MySQL server is not allowed using TCP-IP.

3. Some networking issue prevents connection.

4.When trying to connect to a MySQL server at an ISP this error message often indicates that direct connection to MySQL has been blocked.

 

出错原因主要是这4个,一般首先看的是mysql服务有没开启。安装时默认开机就启动的,那就不用考虑,如果自己改动过的就要注意下,我自己是关掉的,要手动开启。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值