About "database connection" error

I have two questions. One is that, as shown in the figure, there is an error in displaying the IP address. Another is that MySQL database cannot be connected. I don’t know why?
I can confirm that the account and password are correct, and that the account has database privileges.

For the second problem, I have found a solution, that is, to modify the password of MySQL login account again.