MySQL 8.0 Command Line Client crashes right after entering the correct password

Viewed 8148

MySQL 8.0 Command Line Client crashes right after entering the correct password. I have also checked in services and there is no problem there. I'm using windows

5 Answers

It is because MySQL Server stop, may be you run another application that use the same port. Try to run MySQL Installer Community, and you will find the program that you have to reconfigure (blue text). Try to configure MySQL Server ant click Test Connection.

This might be because MYSQL service is stopped.

  1. Open search bar in windows and type services enter image description here
  2. Open the services application and find MYSQL application. enter image description here
  3. Click on start
  4. Now open sql command line and try entering password

It's hard to tell with no debug output or error codes, but disabling ssl might do the trick:

mysql --ssl-mode=DISABLED --host=$MYSQL_HOST --user=$MYSQL_USER ....

I had the same issue, was looking through Google to find an answer and came here. Are you sure, that you provided MySQL password? The root cause of my problem was the fact, that I put the MySQL user instead of MySQL password (the root one). Now everything is working fine.

That could mean that the password is failing. Check CapsLock key.

Related