How To Move a MariaDB Data Directory to a New Location on Linux

How To Move a MariaDB Data Directory to a New Location on Linux

The demo video covers all the steps which are required to move MariaDB data Directory to New Location.
Below are the items covered in the demo video. For scripts you can visit www.techbrotherstutorials.com

  • Check the current Location of Data Directory in MariaDB
  • How to Stop the MariaDB Service 
  • Check the MariaDB service status by using below command
  • Copy Entire mysql directory to new location in MariaDB
  • How to edit my.cnf configuration file in MariaDB to change data directory
  • How to Start MariaDB Service
  • Create a database to test new location is working fine in MariaDB after data directory moved to new location