MySQL - Login fails with incorrect match of case for username -


i unable login mysql unless provide exact case match user have in database.

after looking issue believe problem collation not sure. tried alter collation mysql.user table, user column latin1_swedish_ci still not recognize alternate cases usernames when try login.

my new username admin ( lowercase)

the command running is

mysql -u admin -p    <------ username ending in capital letter 

prior running command ran sql statement below.

here command ran apparently no effect (original collation utf8_bin)

alter table `user` change `user` `user` char(16) character set latin1 collate latin1_swedish_ci not null default ''; 

each time following response.

error 1045 (28000): access denied user 'admin'@'localhost' (using password: yes)

only when login lowercase username succeed in entering mysql.

am missing else here working? how change mysql configuration accept case insensitive usernames?


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

How to merge four videos on one screen with ffmpeg -

c - getting error: cannot take the address of an rvalue of type 'int' -