Insoshi安装脚本和mysql的问题
我在安装 Insoshi 时遇到问题。我按照 Insoshi 自述文件中的安装说明进行操作。当我尝试运行“script/install”时,我的问题出现了。
自述文件说,当脚本失败时,database.yml 文件中的数据库配置有问题。但现在我检查了好几遍,也找不到失败的地方。当我运行“script/intstall”时,我收到以下消息:
无法创建数据库 {“超时”=>5000,“用户名”=>“MYUSERNAME”, “适配器”=>“mysql”, “数据库”=>“数据库名称”, “主机”=>“localhost”,“密码”=>MYPW}, 字符集:utf8,排序规则: utf8_general_ci (如果您手动设置字符集,请确保您有匹配的排序规则)(在 /Users/domi/Coding/Rails/insoshi 中)rake 中止!未初始化常量 MysqlCompat::MysqlRes
我希望你们中的一些人可以帮助我解决这个问题。
最好的问候
多米尼克
i have a problem regarding the installation of Insoshi. I followed the insallation instructions in the Readme file of Insoshi. My problems occur when i try to run "script/install"
The readme file says, that when the script fails, there is something wrong with the database configuration in the database.yml file. But i checked it several times now and i can't find the failure. When i run "script/intstall" i get the following message:
Couldn't create database for
{"timeout"=>5000, "username"=>"MYUSERNAME",
"adapter"=>"mysql",
"database"=>"DBNAME",
"host"=>"localhost", "password"=>MYPW},
charset: utf8, collation:
utf8_general_ci (if you set the charset manually, make sure you have a matching collation) (in /Users/domi/Coding/Rails/insoshi) rake aborted! uninitialized constant MysqlCompat::MysqlRes
I hope some of you can help me with this problem.
best regards
Dominik
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用
root
用户来创建数据库。You should use a
root
user to create the database.