0

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
0

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:

[mysqld]
datadir=/my/specified/datadir

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.