:: What’s MySQL
MySQL is open-source relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases.

 
:: How to move datadir MySQL directory in Linux Ubuntu
+ Stop mysqld

 
+ Move or copy mysql data to new location (/home)

or

 
+ Change permission in new location

 
+ Setting my.cnf

commented or change in this:

add or change to this line:

 
+ Add new location path in apparmor.d

commented or change in these line:

add or changed with these:

 
+ Reload apparmord

 
+ Starting mysqld using new location datadir

 
:: link
+ Google
+ askubuntu