I'm learning how to create a user with a query. I found the following to be working on my localhost, but I'm not sure what the percent sign (%) means. It creates the user test_user
with %
as the host "Host", as displayed in phpMyAdmin, instead of a localhost
Host like for other users I have.
CREATE USER 'test_user'@'%' IDENTIFIED BY 'password';
Also, what would I be doing wrong in assigning privileges to this user?
This doens't work:
GRANT SELECT, UPDATE ON test_db.* TO 'test_user'@'localhost';
This works:
GRANT SELECT, UPDATE ON *.* TO 'test_user'@'localhost';