database placement

G

Guo Yangguang

hello:
I have a question about the placement of database.When i use ruby
console window to create a database named myData.This myData is always
stored in the directry:"C:\InstantRails\mysql\data",but i want it to be
stored in my own project.How can i resolve it?What's more ,if i can
place myData into my project
directry,where should i put it? in "db" directry?
By the way ,i used the IntantRails' console window to create that
database.
 
M

Mark Gallop

Hi,

Guo said:
hello:
I have a question about the placement of database.When i use ruby
console window to create a database named myData.This myData is always
stored in the directry:"C:\InstantRails\mysql\data",but i want it to be
stored in my own project.How can i resolve it?What's more ,if i can
place myData into my project
directry,where should i put it? in "db" directry?
By the way ,i used the IntantRails' console window to create that
database.
How are you creating the database?

If you are using mysql then you want the database files to be stored
where the mysql server expects them and not in your project directory.

Cheers,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,318
Members
47,998
Latest member
GretaCjy4

Latest Threads

Top