简体   繁体   中英

mysql is not running properly when rails server runs. in vagrant envirnement

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql::Error)

when i run rails server it gives me above error. I am using rails 2.3

我用这个命令来运行sql server

sudo /sbin/service mysql-default start

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM