Stop MySQL service
Give user full access to /data folder
Command line:
mysqld --skip-grant-tables
mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('new_password') where USER='root';
mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('new_password') where USER='root';
mysql> FLUSH PRIVILEGES;