Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to move all MySQL software and data files from C: to D:

Status
Not open for further replies.

DeepDiverMom

Programmer
Jul 28, 2003
122
US
Can you please advise me how to move everything MySQL from C: to D:? I'll need help with commands to move the software and the data files.

I appreciate any help you can give me.

Becca
 
to move the data files, providing you are using the myisam tables, you can just copy the data folder over to the new location.

Then in the my.ini/my.cnf file, or thru the mysqlwinadmin tool, change the datadir to point to the new location. To move the application engine itself, i would install into the new directory

Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Bastien,

Thanks so much for responding.

How do things change if we're using "innodb"? My specific data-related parameters from my.cnf are:
Code:
datadir=/var/lib/mysql
innodb_data_file_path = ibdata1:7482M;ibdata2:10M:autoextend

Becca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top