Re: Connecting to database using Eclipse
Posted by: Macamba .
Date: April 08, 2017 08:29AM

Finally found the answer. I use a database user to log in into the database. This password was expired. I set that password policy to never expire:
mysql> alter user 'DBUser'@'localhost' password expire never;
Query OK, 0 rows affected (0.01 sec)

mysql> select user, host, password_last_changed, password_lifetime, password_expired from mysql.user where user='DBUser';
+--------+-----------+-----------------------+-------------------+------------------+
| user   | host      | password_last_changed | password_lifetime | password_expired |
+--------+-----------+-----------------------+-------------------+------------------+
| DBUser | localhost | 2016-04-06 12:51:44   |                 0 | N                |
+--------+-----------+-----------------------+-------------------+------------------+
1 row in set (0.00 sec)

mysql>

And now my code runs as before.

Options: ReplyQuote


Subject
Written By
Posted
Re: Connecting to database using Eclipse
April 08, 2017 08:29AM


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.