MySQL Forums
Forum List  »  Install & Repo

Re: Connect to an existing database on specific path
Posted by: Barry Galbraith
Date: June 20, 2016 04:18AM

>Is it possible to put each database in it's own folder?
Yes, and no. A database goes in its own folder, but under the \data folder

The data folder is defined in the my.ini file the server uses.
By default on Win 10, for MySQL 5.7 the data folder will be in C:\ProgramData\MySQL\MySQL Server 5.7\data
There will be at least a \mysql folder there containing the mysql database that the server uses to run itself.
If you add your files to C:\ProgramData\MySQL\MySQL Server 5.7\data\yourdatabase and restart the mysql sserver then you might be lucky and your database will be there, as long as your tables weren't using innodb engine. If they were, then your data could be long gone with the server.
You will need to login as root as no other user will have privileges on your database.

>Do I need the ODBC connector to use the local data?
Only if you want an application to access the database and it doesn't have its own driver.

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Connect to an existing database on specific path
June 20, 2016 04:18AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.