change mysql config file /etc/mysql/my.cnf
bind-address = 0.0.0.0
SHOW GRANTS [FOR user]
SHOW GRANTS FOR 'root'@'localhost';
GRANT ALL ON *.* TO 'username-here'@'%';mysql -u root -h localhost -puse mysql;
SET PASSWORD FOR 'user-name-here'@'hostname-name-here' = PASSWORD('new-password-here');
FLUSH PRIVILEGES;