`
digiter
  • 浏览: 119046 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Rails与MySQL数据库的连接

阅读更多


搜索下载并安装上面两个.gem,然后gem install mysql

然后对于MySQL的错误信息
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

解决方法
get into mysql

$mysql -u root -p
enter your pwd
and then enter the line

SET PASSWORD FOR 'root'@'localhost' = OLD_PASSWORD('pwd');

and thats it!

quit the mysql session

run rake db:create
then script/server
get into localhost:3000

就可以工作了
  • 大小: 2.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics