打印

在linux下使用ror遇到问题,各位帮忙看一下

在linux下使用ror遇到问题,各位帮忙看一下

在red hat linux enterprice as4下面安装了ror,然后把原来在windows里编的工程搬到了linux里,
运行ruby script/server,打开浏览器...
显示 Errno::ENOENT in AdminController#index
No such file or directory - /tmp/mysql.sock

mysql数据库已经连上,不知道为什么,麻烦各位看一下

TOP

可能是这样的你试下 socket: /path/to/your/mysql.sock

development:
 adapter: mysql
 database: skmaildb
 host:  localhost
# host:  bsweb
 port:  3306
 username: bsproject
 password: bsproject
 encoding: utf8
 socket: /path/to/your/mysql.sock
加上SOCKET

TOP

恩,加上socket就好了,谢谢

TOP

2008-11-22 20:34 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61