Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .