Re: Run MySQL on database located on another computer/resource
Posted by: Gabriela Martinez Sanchez
Date: November 04, 2013 03:50PM

Hi Rasinc

This is possible once you configure the data directories on the my.config file, or by passing this option when starting the server ( --datadir=<<location>>\data )

You can set this up by doing the following:

1 Stop your mysql server before starting this operation.
2 Create the directories that will be new datadir.
3 Assign the proper credentials and ownership to this folder.
4 copy the files from the old datadir to the new location. However, make sure that the files named ib_arch_log_0000000000, ib_logfile0 etc. are not copied to the newer location.
5 Make sure that the files and directories are owned by mysql user
6 Make changes in the my.cnf to point the new datadir.
7 Restart the MySQL database


As always is recommended to make a backup of your existing set up.


Hope this helps.

Options: ReplyQuote


Subject
Written By
Posted
Re: Run MySQL on database located on another computer/resource
November 04, 2013 03:50PM


Sorry, you can't reply to this topic. It has been closed.

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.