xtreamui / XCFILES

4 stars 8 forks source link

No MySQL connection! Try again... #1

Open scriptchecker opened 4 years ago

scriptchecker commented 4 years ago

Doesnt accept mysql password

I have used the one on the webinterface for accessing the mysql (pass works fine)

I have used the one where i do mysql -u -p PASSWORD

script accepts neither password

All i get is : No MySQL connection! Try again... (see below)

THIS IS AN EXPERIMENTAL TOOL, ONLY CONTINUE IF YOU HAVE TO! THIS CAN DO MORE DAMAGE THAN GOOD, WHO KNOWS? ENSURE ALL OF YOUR LOAD BALANCERS ARE RUNNING AND WORKING FIRST

Continue? (Y/N) : Y

Checking Server #1: XX.XX.XX.XX

Xtream Codes user has unrestricted sudo! You will need to modify /etc/sudoers manually on this load balancer. Delete any duplicate after the first xtreamcodes line.

Checking Server #2: XX.XX.XX.XX

Xtream Codes user has unrestricted sudo! You will need to modify /etc/sudoers manually on this load balancer. Delete any duplicate after the first xtreamcodes line.

Main MySQL server is accessible from outside world! Would you like to secure your MySQL and only allow LB's to connect? (Enter Y/N) : y Please enter your MySQL Root Password: PASSWORD No MySQL connection! Try again...

PASSWORD - NOT My actual Password :P

xtreamui commented 4 years ago

Hi, it's possible you haven't got a root mysql password set.

Best thing to do is set one, you can use the command line tool mysql_secure_installation to do it for you.

However it looks like your server isn't infected, so that's good news!

xtreamui commented 4 years ago

Updated the script to run using mysql command line, so anyone using MySQL and not MariaDB won't need to enter a root password

scriptchecker commented 4 years ago

I can confirm, whatever you changed fixed my issues COMPLETELY

Many thanks!!

AWESOME!!!!!!