change mysql data directory path in linux

How to change mysql data directory path in Linux

Change /new/data/dir to you new path to mysql data directory path.

  1. Stop the mysql server
  2.  Copy actual data to new directory
  3. Give permissions to new directory for mysql
  4. Append information about new data directory in /etc/mysql/my.cnf
  5.  Start mysql server
  6. Done 😉

I ask you to review this article

Rating 5 Stars from 3 reviews

Leave a Reply

Your email address will not be published. Required fields are marked *

5 + seven =