I need to check if MySQL is running in a PHP script, so I thought about using mysqli_connect
The only problem is, I don't want it to require MySQL login details. Is it possible to log in without an account? If I log in with no password, or a made up username and password, does the "access denied" prove that MySQL is running?
Is there a better way to do this? If not, what MySQL permissions can I give to an account so I can log in but can't do anything?