Database server storing the values in files data directory. So, if you want to change the storage location for the database, you can just put this data directory in any location in your system and tell that path to MYSQL to manipulate data.
In this post I'm going to show some screen shots to do this.
Note : I'm using WAMP in this example.
In this post I'm going to show some screen shots to do this.
Note : I'm using WAMP in this example.
- First step you should Stop All services
- Just click on the WAMP icon, then select MySQL, then select my.ini file like the above image
- After open you
my.ini
y.ini in your editor(notepad), find the worddatadir
. Here you can see the file path for data directory.
is current file path for data directory.datadir=c:/wamp/bin/mysql/mysql5.5.24/data
- Just go and cut that data directory from the current place and paste it to your desired location.
- Then replace your current directory path to your data directory.
- For example, I pasted my data directory
E
:/CJ_Ramki/data
. So, I changed that directory path todatadir=E:/CJ_Ramki/data
like below picture.
- Finally Start All Services
0 comments:
Post a Comment