LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-08-2006, 08:30 PM   #1
edudirectories
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Rep: Reputation: 0
Trying to move datadir of mysql


I am using RHEL V4 with the default install of mysql 4.1.xx I am trying to move the data directory from the default of /var/lib/mysql to /studio folder which is another harddrive that is raid 5.

I have made the change in the my.cnf - copied the files over and can not seem to get mysqld started. I have even at one point made symbolic links from /var/lib/mysql to /studio folder.

If anyone has any feedback on how to move the data directory i would greatly appreciate it. I would like to keep all my data on the raid 5 drive and the OS on the raid 1 drive.
 
Old 02-09-2006, 01:12 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Try to start it using the datadir option:
Code:
mysqld --datadir=/studio -u mysql
and if it works change your startup script accordingly
 
Old 02-10-2006, 06:25 AM   #3
edudirectories
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
Try to start it using the datadir option:
Code:
mysqld --datadir=/studio -u mysql
and if it works change your startup script accordingly

I think i found the issue. I am using RHEL 4 and it comes with selinux installed. I need to disable the mysqld option on it. I had the same issue with apache yesterday and i disabled it and it worked. I couldnt move any virtualhost directories
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trying to move datadir of mysql edudirectories Linux - Enterprise 1 02-14-2009 07:29 PM
Start MySQL with a non-default datadir nifflerX Linux - Enterprise 9 02-28-2006 05:42 AM
mySQL my.cnf (moving default datadir) not working! madfitz Linux - Newbie 4 02-09-2006 07:15 PM
difference between localstatedir and datadir Robin01 Linux - Newbie 1 11-17-2003 05:49 PM
/usr/local/games/datadir? boku Programming 1 11-27-2002 08:34 AM


All times are GMT -5. The time now is 07:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration