Comments - Connector-C error

6 years ago Charles Cotton

The fix to this problem is to create users with the syntax:

CREATE USER 'root'@'%' IDENTIFIED BY 'password'

Or for windows authentication accounts:

CREATE USER 'user'@'%' IDENTIFIED VIA gssapi AS 'MACHINE_NAME\\user';

----------------------- Being totally inexperienced with MySQL, I don't understand why it is necessary to create several user records for the same user. For example:

CREATE USER 'root'@'localhost' IDENTIFIED BY 'password'
CREATE USER 'root'@'127.0.0.1' IDENTIFIED BY 'password'
CREATE USER 'root'@'HostName' IDENTIFIED BY 'password'
CREATE USER 'root'@'::1 IDENTIFIED BY 'password'

Why would anyone want this when one record with the '%' host does the same think?

Anyway .....

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.