Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was looking for a way to store my mysql databases on a different partition than the default installation. I found this link and followed the steps.

However, after having changed the line datadir = /var/lib/mysql in my.cnf to datadir = /storage/mysql-data, I find myself unable to start the mysql service again:

pieter@foxbox:~$ sudo service mysql start
start: Job failed to start

When I change the datadir back to the standard value, it does work again. Why? What is the problem with the solution in the link?

I'm on Ubuntu 12.04, 32bit

share|improve this question
add comment

1 Answer

Did you move all files from /var/lib/mysql to /storage/mysql-data before starting mysql ? Also, check that the permissions of the new directory are the same as those of /var/lib/mysql

share|improve this answer
    
Only the folders corresponding to databases. –  Honoki May 19 '12 at 12:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.