Home >Database >Mysql Tutorial >MySQL出现 Can't connect to mysql server on &_MySQL

MySQL出现 Can't connect to mysql server on &_MySQL

WBOY
WBOYOriginal
2016-06-01 13:12:021068browse

当你从DOS进入MySQL时,如果出现如下错误:


则很有可能是你的MySQL还没有启动,你可以试一下以下的方法:

(任意路径下)直接敲入命令:net start mysql


这个时候可以看到MySQL已经启动。

这时敲入命令:mysql -uroot -p

要求输入密码是输入正确的密码即可;若无密码,直接敲入:mysql -uroot 即可。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn