0
点赞
收藏
分享

微信扫一扫

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

七公子706 2022-02-03 阅读 90

 C:\Users\Administrator>mysql -uroot -proot
            ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (10061)
            C:\Users\Administrator>net start mysql
            服务名无效。
            E:\MariaDB\bin>mysql -u root -p
            Enter password: ****
            ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (10061)
            E:\MariaDB\bin>mysqld -install mysql
            Service successfully installed.        
            E:\MariaDB\bin>net start mysql
            mysql 服务正在启动 ..
            mysql 服务已经启动成功。
            E:\MariaDB\bin>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:\MariaDB\bin>c:
            C:\Users\Administrator>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)]>
————————————————

举报

相关推荐

0 条评论