Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I followed this http://quarkgluon.com/tutorials/MySQL-on-Ubuntu-Lucid-with-EBS-Drive-EC2/ tutorial to move my existing MySQL installation form root EBS volume to new EBS volume everything just go fine but in the end I coulnd't able to Start MySQL it says

start: Job failed to start

I also change the necessary links for the AppArmor below are the links

/web_db/mysql_server/*.pem r,
  /web_db/mysql_server/conf.d/ r,
  /web_db/mysql_server/conf.d/* r,
  /web_db/mysql_server/*.cnf r,
  /usr/lib/mysql/plugin/ r,
  /usr/lib/mysql/plugin/*.so* mr,
  /usr/sbin/mysqld mr,
  /usr/share/mysql/** r,
  /web_db/log/mysql.log rw,
  /web_db/log/mysql.err rw,
  /web_db/mysql/ r,
  /web_db/mysql/** rwk,
  /web_db/log/mysql/ r,
  /web_db/log/mysql/* rw,
  /var/run/mysqld/mysqld.pid w,
  /var/run/mysqld/mysqld.sock w,
  /run/mysqld/mysqld.pid w,
  /run/mysqld/mysqld.sock w,

Restarted apparmor but still couldn't able to start MySQL

share|improve this question
What do the logs say? –  mgorven Jun 18 '12 at 0:50
no log file exists –  Assad Ullah Jun 19 '12 at 16:18
You should add an error log file like: log-error=/var/log/mysqld51.log in the my.cnf mysql config file and check what it says when you're trying to start mysql. Alternatively you could try to start mysqld directly by invoking it from the command line and see what errors it throws. Also would be good to check that the moved database files - /var/lib/mysql - belong to the mysql user. –  Logic Wreck Jun 20 '12 at 11:17
It looks like that tutorial you are following is based on this article I wrote for Amazon: aws.amazon.com/articles/1663 You might try following my original article to see if you get better results. You should not need to modify any AppArmor settings if you are using bind mounts. Note that "/dev/sdh" should be spelled "/dev/xvdh" on modern Ubuntu on EC2. –  Eric Hammond Jun 22 '12 at 2:05
I have the same problem, please check this link : stackoverflow.com/questions/13398591/… –  LaWFuL EviL Nov 16 '12 at 15:11

Your Answer


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

Browse other questions tagged or ask your own question.