Can't connect to MySQL server on 'localhost' (10061)

来源:互联网 发布:域名地址解析 编辑:程序博客网 时间:2024/06/08 06:12
Microsoft Windows [版本 6.1.7601]版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:\Users\Administrator>cd /d E:\Program Files\MySQL\binE:\Program Files\MySQL\bin>mysql -u rootERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)E:\Program Files\MySQL\bin>mysql -uroot -pEnter password: ******ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)E:\Program Files\MySQL\bin>mysql -uroot -pEnter password: ******ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)第一步删除c:\windows\下面的my.iniE:\Program Files\MySQL\bin>mysqld-nt -remove'mysqld-nt' 不是内部或外部命令,也不是可运行的程序或批处理文件。E:\Program Files\MySQL\bin>mysqld-nt -install'mysqld-nt' 不是内部或外部命令,也不是可运行的程序或批处理文件。E:\Program Files\MySQL\bin>mysqld-nt -remove'mysqld-nt' 不是内部或外部命令,也不是可运行的程序或批处理文件。E:\Program Files\MySQL\bin>mysqld-nt -install'mysqld-nt' 不是内部或外部命令,也不是可运行的程序或批处理文件。E:\Program Files\MySQL\bin>net start mysqlMySQL 服务正在启动 .MySQL 服务已经启动成功。E:\Program Files\MySQL\bin>mysql -uroot -pEnter password: ******Welcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 1Server version: 5.1.73-community MySQL Community Server (GPL)Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;+--------------------+| Database           |+--------------------+| information_schema || cloud_note         || mysql              || test               |+--------------------+4 rows in set (0.00 sec)mysql>
0 0