how to check mysql daemon from a script, not via Telnet?
I want to run mysql (the client) and get a response about the status of the server, connectivity, or a problem report.
Starting mysql when there is no root access, you can get the answer
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
It's all good, I'll read the answer, raspers it and say the mysql server is running, access to root without a password is forbidden.
If I had access then I move to online mode, as it does not go into interactive mode and just get the connection status.
Well, if not the mysql I will answer that you have not installed the mysql client