Open kriptor opened 3 years ago
Hi @kriptor . Please try running this on Admin:
SET admin-hash_passwords='false';
LOAD ADMIN VARIABLES TO RUNTIME;
SAVE ADMIN VARIABLES TO DISK;
then force proxysql to reload the users:
LOAD MYSQL USERS TO RUNTIME;
Finally try again to connect. Let me know if that works
Hi @renecannao, thx for replying.
I bootstrapped proxysql from the above proxysql.cnf which had hash_passwords=false directive, so I guess proxysql wasn't hashing passwords. If you search my OP for used password bujgvocwjzeejidy, you can see there was the exact same password literal in both mysql_users and runtime_mysql_users table records. This same password was then used with mysql-client (can also be seen from my OP) which worked.
Anyway, I tried what you suggested but unfortunately it didn't change a thing.
What actually did the trick at the end was changing password encryption from Default – MySQL 8+ to Legacy – MySQL 5.x on the side of managed Digitalocean MySQL. It's not perfect, but it works. According to https://proxysql.com/documentation/mysql-8-0/ MySQL 8 should be supported although this doesn't seem to be the case.. at least not in my setup with DO managed MySQL.
Hi, I'm probably missing or just don't understand something... and would appreciate some guidance. I'm sorry for the humongous post, btw. Thx
This is how to reproduce the issue (from the title):
proxysql.cnf
terminal 1 (to start proxysql and monitor its logs)
terminal 2 (to test the connectivity from inside the same container)