0
連接到本地MySQL服務器我運行Windows 7的Rails的:無法通過套接字
使用VirtualBox的Ubuntu當我啓動「本地主機:3000」(後我跑了rails s
),我得到了以下錯誤:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
我在Ubuntu上安裝了XAMPP,所以我的MySQL安裝似乎是在這裏:/opt/lampp/var/mysql
(mysql.sock
有)
應該如何將我的Rails應用程序連接到這個MySQL安裝?
謝謝!這解決了問題! –