mysql链接错误:2003 can't connect to mysql server on 10038

Posted 星辰海

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql链接错误:2003 can't connect to mysql server on 10038相关的知识,希望对你有一定的参考价值。

出现这个错误原因是端口号不是3306。

 打开D:\Program Files\mysql\MySQL Server 5.5 \my.ini文件,当然还有其他的.ini的文件:
 

[client]

port=3306

[mysql]

default-character-set=utf8


# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
[mysqld]

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










以上是关于mysql链接错误:2003 can't connect to mysql server on 10038的主要内容,如果未能解决你的问题,请参考以下文章