Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) An error is reported, the possible reason is that mysql is not started, you can try the start command
mysql.server start
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) An error is reported, the possible reason is that mysql is not started, you can try the start command
mysql.server start