Somk
Somk

Reputation: 12047

Dropbox XAMPP & MySQL

I have relocated my htdocs folder to be within my dropbox folder and would like to do a similar thing with my MySQL databases. I don't know if this is even possible or advisable so would love to hear anyones advice and thoughts.

Should I be doing this and if so how?

Upvotes: 0

Views: 1212

Answers (2)

Brian
Brian

Reputation: 8616

I would discourage it deeply :)

But... you can change you're path to whatever you want...

http://dev.mysql.com/doc/refman/5.1/en/server-options.html#option_mysqld_datadir

You can simply add the flag each time you start mysqld, or you could add it to the [mysqld] section of your user-wide/machine-wide mysql config file.

You will need to initialize the tables first, using the mysql_install_db script ( http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html )

Upvotes: 3

Dave
Dave

Reputation: 918

I have local server installed on my dropbox works perfectly I only use it for testing purposes so no production sites run from it but its a great way to run local sites/test that sync to all your computers.

Upvotes: 0

Related Questions