title: Can we delete default data directory(& data in it) of mysql in ubantu after moving the data into a new partition
body: <p>Changed mysql config (/etc/mysql/mysql.conf.d/mysqld.cnf) to point to new data directory &amp; restarted.</p>
  <p>Followed the procedure given on this link.</p>
  <p><a href="https://linuxhint.com/change_mysql_data_directory_ubuntu/#:%7E:text=The%20default%20data%20directory%20for%20the%20MySQL%20database%20server%20is,%2Fetc%2Fmysql%2Fmysql" rel="nofollow noreferrer">https://linuxhint.com/change_mysql_data_directory_ubuntu/#:~:text=The%20default%20data%20directory%20for%20the%20MySQL%20database%20server%20is,%2Fetc%2Fmysql%2Fmysql</a>.</p>
  <p>But in it he just copies data into new partition &amp; never deletes source. So just wanted to confirm whether we are safe to delete the  default data directory or not.</p>