I just installed Centos 7 and LAMP stack. However, I only can log in to Mariadb as root even though there is another user. I've been using MySQL for a couple of decades but I can't figure this out.
Basically everything seems to be all right and exactly the same user configuraiton worket fine with MySQL and previous centos 6.10. This another user (ie. John) can't log in to mariadb from cli neither can he login from phpmyadmin locally or remotelly. Only the root user can access databases.
I've tried third user, with the same result. All three have the following hosts with same privileges: %, localhost, ::1 and "host.domain.fi". And yes, I have committed the "flush privileges" sql-command.
I've even tried super complex passwords with no help. Only response is "ERROR 1045 (28000): Access denied for user 'test'@'localhost' (using password: YES)".
Only difference in the creation of users is that root user was created with mysql_secure_installation and others with phpmyadmin.
Anyone, ideas? This obviously is quite a hazard for secure use of my mariadb.