windows cmd命令行操作启动mysql服务步骤

错误提示    cmd ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

                   Mysql启动报错:ERROR 2003 (HY000) Can't connect to MySQL server on 'localhost' (10061)

解决办法    需要管理员权限启动windows cmd命令行      Mysql启动之后 才能连接  connect to MySQL server on 'localhost' 


Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。


C:\Windows\system32> net start MySQL56
MySQL56 服务正在启动 ...........
MySQL56 服务已经启动成功。

NET
    [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
      STATISTICS | STOP | TIME | USE | USER | VIEW ]


C:\Windows\system32> net stop MySQL56
MySQL56 服务正在停止.
MySQL56 服务已成功停止。




C:\Windows\system32> net start MySQL56
MySQL56 服务正在启动 ...........
MySQL56 服务已经启动成功。



C:\Windows\system32>d:


D:\>cd myEve\mysql\MySQL Server 5.6




D:\myEve\mysql\MySQL Server 5.6>bin\mysql -hlocalhost -P3306 -uroot -p
Enter password: ****
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.20 MySQL Community Server (GPL)


Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.C:\Windows\system32> net stop MySQL56



Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql>


你可能感兴趣的:(常见错误)