はじめまして
あるサーバにインストールされているRedMineを別サーバにインストールするため、データベースのバックアップをmysqldumpコマンドで実行
したところ下記のエラーメッセージが表示されました。
なにがいけないのでしょうか?
OS:WindowsXP
C:\Program Files\BitNami Redmine Stack\mysql\bin>mysqldump -u bitnami -
h localhost bitnami_redmine >backup20110304.dump
mysqldump: Got error: 1044: Access denied for user ''@'localhost' to
database 'b
itnami_redmine' when selecting the database
ちなみに database.yml は下記のように記述されております。
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password hashing:
#
http://dev.mysql.com/doc/refman/5.0/en/old-client.html
production:
adapter: mysql
database: bitnami_redmine
host: localhost
username: bitnami
password: 7182b89116
port: 3308
development:
adapter: mysql
database: redmine_development
host: localhost
username: bitnami
password: 7182b89116
port: 3308
test:
adapter: mysql
database: redmine_test
host: localhost
username: bitnami
password: 7182b89116
port: 3308
test_pgsql:
adapter: postgresql
database: redmine_production
host: localhost
username: postgres
password: 7182b89116
test_oracle:
adapter: oci
host: 192.168.0.14
username: rails_test
password: 7182b89116
test_sqlserver:
adapter: sqlserver
host: localhost,1157
database: redmine_test
demo:
adapter: sqlite3
dbfile: db/redmine_demo.db