Error 2002 (HY000): can’t connect to local MySQL server through socket ‘/ var/run/mysqld/ mysqld.sock ’ (2)
When starting mysql, it appears:
because I haven’t used MySQL under Ubuntu for a long time, I thought my password was wrong, and I repeatedly lost it several times. I found that it’s still like this. I also checked the related blogs on the Internet and found that it can’t work. Generally, this kind of error appears on the Internet, which is a bit similar to
In fact, it’s not the same. Pay attention to distinguish the following folders, so go to the configuration file of Mysql to see where the socket folder is, and the configuration file of MySQL is in
/etc/MySQL/ my.cnf In this, cat has a look:
found this sentence remember to edit So when you install mysql, the MySQL Server package is not installed (I don’t know how to get in before, ha ha), so you can install this package
you can also check whether there is this package first
so after installing mysql-server-5.7, you can enter the root password.
A289885427
now my.cnf There is no previous sentence
Read More:
- Solution to error 2002 (HY000) in MySQL
- Error 2003 (HY000): can’t connect to MySQL server on ‘localhost’ (10061)
- Solution to error 2002 (HY000) in MySQL login startup
- ERROR 2005 (HY000): Unknown MySQL server host
- Mysql start slave error 1201 (HY000)
- Error 2005 (HY000) unkonw MySQL server host…
- ERROR 2002 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)
- MYSQL:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- [MySQL] error 1396 (HY000): Operation create user failed for ‘MySQL’ @’localhost ‘
- SQL exception handling – MySQL error 1005 (HY000): can’t create table ‘TMP’ (errno: 13)
- Linux-mysql8.0 password reset problem – error 1396 (HY000): Operation alter user failed for ‘root’ @’localhost ‘
- About error 1005 (HY000) in MySQL: can’t create table ‘_______ ‘(errno: 150) fool’s plan
- mysql load data infile ERROR 13 (HY000): Can’t get stat of
- ERROR 2000 (HY000): Unknown MySQL error
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- MySQL error: error 1010 (HY000) when deleting database
- mysql ERROR 1025 (HY000): Error on rename of
- Solve MySQL installation error: initializing database prompts an error when installing mysql
- MySQL 8 — error in setting simple password error 1819 (HY000): your password does not satisfy the current policy requirements
- Solve net start mysql, start MySQL service, prompt system error 5. Access denied.