amxmodx icon indicating copy to clipboard operation
amxmodx copied to clipboard

AMXX 1.9 - build 5294 mysql

Open DeNeDe opened this issue 3 years ago • 5 comments

I'm using version 1.9 - build 5294 and i have problems using the admins sql feature or any other plugin that has sql feature Despite the fact all credentials are in order it doesn't want to connect. Ive tried both localhost and 127.0.0.1 for the host Using MariaDB 10.6 Should the mysql module be update or code re-written ?

DeNeDe avatar Jan 15 '22 22:01 DeNeDe

Do you get this on the server console? Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/local/mysql/lib/plugin/caching_sha2_password.so: cannot open

bigdaddy424 avatar Jan 16 '22 07:01 bigdaddy424

Ohh no I got [AMXX] SQL error: can't connect: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 0' this is for the admins the other plugins just say can't connect to the database

DeNeDe avatar Jan 16 '22 12:01 DeNeDe

a quick google search leads to this https://stackoverflow.com/questions/3578147/mysql-error-2013-lost-connection-to-mysql-server-at-reading-initial-communic

bigdaddy424 avatar Jan 16 '22 20:01 bigdaddy424

wow... jeeez thanks (sarcasm) of course ive tried that still didnt worked. idea is any other script i have work just fine using those credentials to connect to the database

DeNeDe avatar Jan 16 '22 21:01 DeNeDe

i've found the fix for it without any security risks ive looked in the database and the root account is for localhost but since in the config scripts we use 127.0.0.1 we just need to make another account for root for the host 127.0.0.1 (yes i use root under linux) yes i know..the 2 are the same, but not kinda (yes ive tried at first to use localhost instead of 127.0.0.1 in the configs but gave other errors) image

DeNeDe avatar Jan 24 '22 20:01 DeNeDe