Is it possible to validate the given MySQL username and password using shell script without attempting to login to the MySQL service? If so, How? I haven’t found any useful solutions.
Is it possible to validate the given MySQL username and password using shell script
Share
Try this. It works.
If you provide correct login credentials, the exit code will be 0 else it will be 1.
Example:
Explanation: