Content
You are here:
How to use remote database for OP 3.0?
Added by Michal Opacki about 11 years ago
Hi
I’m editing database.yml but without effect.
After running rake db:create:all I’m getting message:
“This task only modifies local databases. dialin_op is on a remote host.”
My .yml file looks like this for each type of DB:
MySQL (default setup).
production:
adapter: mysql2
database: dialin_op
host: 1*4.42.*0.41
username: *****
password: *****
encoding: utf8
socket: /tmp/mysql.sock
reconnect: yes
timeout: 5000
The database does not exist yet. Should I create it? What should I change to use the remote database?
Thanks in advance
Replies (1)
Hi Michal,
yes, you have to create the DB yourself. This post should give you pointers on how to do it.
Best
Jens