InnoDB is a database engine(compatible with ACID) transactions with insurance for MySQL that has commit,
rollback and recovery capabilities to protect the User data.
1 - First stop your database
2- Changes the my.cnf file by adding the following lines,
where innodb_data_home_dir should receive the specific path for your system.
3- Copy the ibdata1 file to the new location.
4- Start the Database .
5- Log in the database and check the value of the parameter .