Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default ibdata1 - move and symlink? Will this work?

    ibdata1 is eating up more and more of our /var partition. So can we just do this?:
    -------------------
    cd /home
    mkdir /home/mysql
    chown mysql:mysql /home/mysql
    chmod 751 /home/mysql

    cd /var/lib/mysql
    service mysql stop
    mv ibdata1 /home/ibdata1
    ln -s /home/ibdata1 /var/lib/mysql/ibdata1
    service mysql start
    -------------------

    Anything wrong with using the above described method?

    Thanks for any help here.

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Anyone? My /var is at 91% and the ibdata1 is taking up the most room in var for any one file.

  3. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    Try this post from cpanelkenneth:
    http://forums.cpanel.net/f5/ibdata1-...tml#post342003
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Quote Originally Posted by Infopro View Post
    Thanks INFOPRO but your response had lead me into a circle. My question is if ibdata1 can be moved and symlinked. The thread you sent me to also does not answer this question.

  5. #5
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

  6. #6
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default

    Thanks but you missed my question again. No problem, I found the answer on another web board.

    My question was:

    -------------

    So can we just do this?:
    -------------------
    cd /home
    mkdir /home/mysql
    chown mysql:mysql /home/mysql
    chmod 751 /home/mysql

    cd /var/lib/mysql
    service mysql stop
    mv ibdata1 /home/ibdata1
    ln -s /home/ibdata1 /var/lib/mysql/ibdata1
    service mysql start
    -------------------

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jols View Post
    Thanks but you missed my question again.
    ...


    Possibly. My thoughts were from those posts I linked you to though that the answer you were seeking was probably yes sure, and here's some background to assist you in doing what you want to do.

    Since I have not myself done what you seek to do, by me just replying yes might imply that I know personally that it would be ok to do it, I don't, other than what I read in those linked threads. So, I choose not give you a definitive answer, just more links to addtional Info on the topic.

    Sorry for the confusion in trying to help get you sorted.

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 05-17-2010, 05:49 PM
  2. ibdata1
    By NNNils in forum Database Discussions
    Replies: 4
    Last Post: 12-18-2009, 02:52 AM
  3. cp move error - 3 sites work 1 doesn't
    By mitk in forum New User Questions
    Replies: 2
    Last Post: 09-20-2009, 05:05 AM
  4. Physical Move instead of Symlink
    By jugo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-03-2007, 10:48 PM
  5. cpanel move questions: howto move account when username exis
    By haze in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-24-2003, 01:02 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube