导入数据库问题:
一
rake aborted!
syntax error on line 14, col 2: ` encoding: utf8'
解决办法:In the config/database.yml file there needs to be a space before the password
故将config/database.yml ,修改password(密码前加空格)
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: 123
encoding: utf8
二
rake aborted!
A key is required to write a cookie containing the session data. Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb
(See full trace by running task with --trace)
解决办法:Generate a session store secret. This is required on the trunk version of Redmine at r2493 or above and the released 0.8.7 version or above.
Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:
执行:
D:\02_study\17-redmine\redmine-0.9.3>rake config/initializers/session_store.rb
(in D:/02_study/17-redmine/redmine-0.9.3)
再运行:
三
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install
the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by running task with --trace)
解决办法:
运行gem install mysql
四
在启动的时候,可能会碰到如下错误:无法定位程序输入点mysql_stmt_row_tell于动态链接库LIBMYSQL.DLL上
解决办法:解决方法是:
S1.关闭redmine应用,
S2.复制”InstantRails\mysql\bin“目录下的LIBMYSQL.DLL文件到”InstantRails\ruby\bin“下,
S3.启动redmine应用。
需要注意的是:这个文件是个1.44MB(1484KB)大小的文件,如果是从其他地方搜索而来的和它的大小不一致,但文件名一样的文件,是不起作用的。
访问页面,没有错误提示,问题解决。