LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2003, 01:41 AM   #1
jeanchristophe
LQ Newbie
 
Registered: May 2003
Location: Danmark
Distribution: Mandriva2005
Posts: 15

Rep: Reputation: 0
RedHat-9 mysql


I am trying to change the location of my database.
I have edited /etc/my.cnf and changed datadir
Code:
 [mysqld]
datadir=/var/lib/mysql
to /mnt/data/mysql
without succes.
What can I do ?
Thank's
Jean Christophe
 
Old 05-17-2003, 01:45 AM   #2
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Don't know if this trick will work....

Try making /var/lib/mysql a link to /mnt/data/mysql and then you don't have to change any thing.

--Sarin
 
Old 05-17-2003, 02:15 AM   #3
jeanchristophe
LQ Newbie
 
Registered: May 2003
Location: Danmark
Distribution: Mandriva2005
Posts: 15

Original Poster
Rep: Reputation: 0
I thought about it to, but when the database will be 5 GB, I will have 2*5=10 GB no ?
Thank's for the idea anyway
 
  


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
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
mysql on redhat subramd Linux - Software 1 09-07-2005 12:25 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 12:06 AM
MySQL on Redhat 8.0 syzuhdi Linux - General 2 11-05-2002 08:37 AM
Help with MySQL and Redhat 7 jwill Programming 14 06-26-2001 07:53 PM


All times are GMT -5. The time now is 07:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration