Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

host is not allowed to connect to this mysql server

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #host #allowed #connect #mysql #server
ADD COMMENT
Topic
Name
4+3 =