Answers for "configuring database connection results in Error :host 'xxxxxxx' is not allowed to connect to this MySql server"

SQL
1

host not allowed to connect to this mysql server

mysql -u root -p
    -- root password

    CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';

    GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' WITH GRANT OPTION;

    CREATE USER 'username'@'%' IDENTIFIED BY 'password';

    GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;

    FLUSH PRIVILEGES;

    EXIT;
Posted by: Guest on November-12-2020

Code answers related to "configuring database connection results in Error :host 'xxxxxxx' is not allowed to connect to this MySql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language