LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2007, 05:09 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
How hard to get MySQL data served from a separate physical drive?


I ran some sysstat diagnostics on one of my servers and it would seem that the disk drive is getting a real workout. I plan to add more RAM to alleviate the memory paging/swapping that's going on, but am hoping to prepare for future growth. I'd like to try and put the MySQL data onto a separate physical disk drive so that Linux, Apache, and PHP can all use one drive and MySQL data will be retrieved from another. How hard is it to configure MySQL to use a different drive for its data?
 
Old 09-18-2007, 06:15 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
I dont know if this is right,but it worked for me.
Edit the my.cnf configuration file (was in /etc for me on redhat).
stop mysql
Change the datadir to your new location
copy the data to the new location
re-start mysql
 
Old 09-18-2007, 09:53 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Thanks FragInHell, I think that is going to work for me. A buddy said the same thing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Future of Physical Hard Drive Security LXer Syndicated Linux News 0 09-18-2006 11:54 AM
How to setup two physical hard drive windows and linux OS QGiz Linux - Software 2 02-11-2004 07:01 AM
Booting from a Separate Hard Drive sneakers Linux - Laptop and Netbook 7 10-29-2003 12:13 PM
Installing Linux on a second physical hard drive JediDrunk Linux - General 3 10-27-2003 10:05 AM
Installing linux on a separate hard-drive Hawkboy Linux - Newbie 4 08-16-2002 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration