TablePlus / DBngin

DB Engine
https://dbngin.com
995 stars 19 forks source link

Unable to connect to MySQL 5 db using password from terminal #53

Closed texastoast closed 3 years ago

texastoast commented 3 years ago

Please fill out the detail below, it helps me investigate the bug:

  1. Driver: MySQL 5.7.23

  2. DBngin build number: 3.1 (32)

  3. macOS version: 10.15.7

  4. The steps to reproduce this issue:

huyphams commented 3 years ago

Hi @texastoast there is no password so you can omit the -p params.

huyphams commented 3 years ago

If you want to create a password, you can just log in with root and then alter the root password. However, it's the local database we would recommend you leave it as it is. Another solution is you can download our app https://tableplus.com it would allow you to create/alter user password easily. (this feature is free).

texastoast commented 3 years ago

You misunderstand. I'm already using tablesplus, as noted in the original post.

When I give the root user a password (using tablesplus), I can no longer connect to the server via the command line using the password I just configured.

When I create a new user (using tablesplus) and give that user a password (using tablesplus) and then grant that user full permissions on a database (using tablesplus), I can not connect to that database via the command line using that user and password.

texastoast commented 3 years ago

Closing. This issues was due to having multiple versions of mysql installed and not exporting the environment variables to the terminal using DBngin. Once I removed all other versions of MySQL and exported the env, everything worked as expected. Thank you.