器量大者,福泽必厚
全部博文(587)
分类: LINUX
2013-11-01 15:00:17
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
.....
但运行时提示连接不上db
_mysql_exceptions.OperationalError: (2002,
"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(2)")
解决方法:
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock