1 ) How to relocate the data dir while installing the MySQL-server-5.5.18-1.linux2.6.i386.rpm.

rpm -ivh MySQL-server-5.5.18-1.linux2.6.i386.rpm
  • 1
    Could you please elaborate the second question? – quanta Nov 30 '11 at 6:27

If a my.cnf is present when MySQL is installed, it will override any default settings with the values specified there. So you can simply create your /etc/my.cnf with the following content:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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