mysql无法访问

mysql无法访问,抛出如下异常:
error: 'Can't connect to local MySQL server through socket '/usr/local/mysql/sock/mysql.sock' (2)'

解决方法:
/etc/rc.d/init.d/mysql restart

你可能感兴趣的:(mysql,数据库,职场,休闲)