MySQL error number 1130 (privilege granting)

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

MySQL error number 1130 (privilege granting)

Post by cah »

When a new MySQL is created, the connection is usually denied until the privileges are granted.

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 the hostname is '%' which gives blanket permission to allow logging in from anywhere.

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.
CAH, The Great
Post Reply