我是小白,大佬勿喷
***
mysql
显示error 2002 (hy000): can't connect to local mysql server through socket
解决办法
输入service mysql restart
root@des:/# service mysql restart * stopping mysql database server mysqld [ ok ] * starting mysql database server mysqld no directory, logging in with home=/ [ ok ]
然后输入mysql
root@des:/# mysql welcome to the mysql monitor. commands end with ; or \g. your mysql connection id is 4 server version: 5.7.26-0ubuntu0.18.04.1 (ubuntu) copyright (c) 2000, 2019, 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. type 'help;' or '\h' for help. type '\c' to clear the current input statement. mysql>
如对本文有疑问, 点击进行留言回复!!
一步步教你用Prometheus搭建实时监控系统系列(一)——上帝之火,普罗米修斯的崛起
网友评论