栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

mysql登录遇到ERROR 2002 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)解决办法

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

mysql登录遇到ERROR 2002 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)解决办法

 C:UsersAdministrator>mysql -uroot -proot
            ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (10061)
            C:UsersAdministrator>net start mysql
            服务名无效。
            E:MariaDBbin>mysql -u root -p
            Enter password: ****
            ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (10061)
            E:MariaDBbin>mysqld -install mysql
            Service successfully installed.        
            E:MariaDBbin>net start mysql
            mysql 服务正在启动 ..
            mysql 服务已经启动成功。
            E:MariaDBbin>mysql -uroot -proot
            Welcome to the MariaDB monitor.  Commands end with ; or g.
            Your MariaDB connection id is 8
            Server version: 10.3.7-MariaDB mariadb.org binary distribution
            Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
            Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
            MariaDB [(none)]>quit
            Bye
            E:MariaDBbin>c:
            C:UsersAdministrator>mysql -uroot -proot
            Welcome to the MariaDB monitor.  Commands end with ; or g.
            Your MariaDB connection id is 14
            Server version: 10.3.7-MariaDB mariadb.org binary distribution
            Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
            Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
            MariaDB [(none)]>

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/727539.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号