Is it possible to change the data directory of MySQL using java?
regards
Shihab
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JDBC URL is used to connect to an existing database or at least to a running mysql TCP server in that case there ‘s no common sense to change the place where the daemon finds data …
So I would be tempted to say no… I would not be the case with some embedded databases like Derby or H2 but those are well suited for totally different use cases…
For your information this is the MySQL config page : http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html
HTH
Jerome