我使用MacPorts安装Ruby、Rubygems、Rails和mysql (我安装了两个端口“Ruby”和"mysql5")。我遵循了一个教程,该教程要求我们使用mysql来修改一个基本的RoR数据库,并得到了以下内容:ERROR 2002 (HY000):Can't connect to local MySQL server through socket '/opt/loc
Unable to connect to the MySQL server:
org.netbeans.api.db.explorer.DatabaseExceptionThe server may not be running or your MySQL connection properties
may not be set correctly.Do you want to edit your MySQL connection pro