连接MySql时出现 2003 - Can’t connect to MySQL server on ‘127.0.0.1’(10038)问题
好久没有连接mysql,今天打开Navicat,数据库连接不上了,出现下面问题
新建连接,进行连接测试
可是还是出现上面问题,再三确认主机名,端口号,密码,没有错误.
接着打开任务管理器,查看服务,没有Mysql
这样只好手动添加,win+R键进入运行窗口,窗口中输入 cmd 命令,进入命令面板后进入你本机所在的mysql的bin目录下面,我的是放在c盘下面的Program Files文件里,输入命令 cd + …\bin,或者打开mysql的bin下面,输入cmd打开命令提示符,
进去以后再输入命令 :
mysqld.exe install
然后点击回车后就会显示 : Service successfully installed.
然后,服务中mysql就会出现啦,右击,开始即可.