MySQL Forums
Forum List  »  Newbie

Users and hosts
Posted by: John Dunn
Date: May 16, 2018 04:16AM

I am coming from an Oracle background and configuring users and hosts is doing my head in.

I am connecting via JDBC to a MySQL 5.5 installation on the same Linux machine MYHOST

I am connecting as user TEST105

I get the error :

jdbc:mysql://MYHOST:3306/MYDB ==> Access denied for user 'TEST105'@'MYHOST' (using password: YES)

I works fine if I change 'MYHOST' to 'localhost'

Users are configured as follows. Why can I only connect when specifying host as localhost? I want the user to be able to connect from any hostname


mysql> select user,host from user;
+--------------+----------------+
| user | host |
+--------------+----------------+
| TEST105 | % |
| TEST105@% | % |
| TEST105 | %.%.%.% |
| root | 127.0.0.1 |
| root | ::1 |
| | localhost |
| TEST105 | localhost |
| root | localhost |
| | MYHOST |
| root | MYHOST |
+--------------+----------------+

Options: ReplyQuote


Subject
Written By
Posted
Users and hosts
May 16, 2018 04:16AM
May 16, 2018 05:15AM
May 16, 2018 09:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.