title: Renaming Databases files in /var/lib/mysql
body: <p>I want to do a quick backup of a huge database that takes too long to dump and restore, and create a new temp database to test on. If the test works I will keep the new database, else I will revert to the old one.</p>
  
  <p>Is it alright to rename the database folder at <code>/var/lib/mysql</code> to some other name. Then create a new db in MySQL and if I want to switch back to the old database, I will drop the current db and rename the old db folder at <code>/var/lib/mysql</code>.</p>
  
  <p>The current software is fixed to use a database of a certain name, hence the reason for renaming the old database.</p>