2010-04-20

Windows下安装Redmine的常见问题

一、异常一

Mysql::Error: query: not connected: CREATE TABLE 'schema_migrations' ('version varchar(255) NOT NULL) ENGINE=InnoDB
出现这种情况是你没有在ruby的运行环境下,添加MySQl动态链接库 libmySQL.dll 解决方法:
  1. 下载libmySQL.dll http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
  2. 将下载后的libmySQL.dll文件复制到 Ruby/bin目录下(即你安装rubyinstaller的目录)

二、异常二

The bundled mysql.rb driver has been removed from Ruby 2.2.
出现这种情况是在rails2.2之后已经经mysql的驱动从核心框架中删除, 需要单独安装 解决方法: 执行
gem install mysql
blog comments powered by Disqus