When I want to create a database by through MySQL Workbench 6.1 CE the database always creates at "C:\ProgramData\MySQL\MySQL Server 5.6\data\". But I want to save it in my desired folder. How do I do that?
Santanu Das
4
Junior Poster in Training
Recommended Answers
Jump to PostIt happens because this is the data directory used by the server. If you want to change it then modify the
datadir
value in the my.cnf file, and then restart MySQL.Note apart
I don't know how it works with Windows permissions, but in linux the new data directory must …
Jump to PostI don't know how Workbench handles this task, but when changing the path you have to move the data to the new location and you have to restart the database, otherwise it will continue to use the configuration options in memory.
For a detailed explanation read the documentation:
All 5 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
Santanu Das
4
Junior Poster in Training
cereal
1,524
Nearly a Senior Poster
Featured Poster
ahmad.syaukani.37
0
Newbie Poster
Santanu Das
4
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.