Log in as root or admin user first, then try the following command:
Code: Select all
GRANT ALL PRIVILEGES ON *.* TO '<username>'@'%' IDENTIFIED BY '<password>' WITH GRANT OPTION;
NOTE 1: IDENTIFIED BY '<password> must be given then remote login is possible.
NOTE 2: IDENTIFIED BY '<password> must be given before WITH GRANT OPTION then remote login is possible.