Is there a way to check if MySQL server is connected (or not)?

And avoid error message “WARNING: cannot start the portable MySql server…” when executing application.

Application does proceed but, as expected, when trying to use MySQL get “PHP Fatal error: Uncaught Error: Call to a member function query()”.

Connection can fail, for multiple reasons (conflict, user error, user messed with mysql folder, etc.). I would like to know if it’s not connected and, thereby, have my code use another process other than SQL.

I looked at the forum for possible solutions such as an HESscript, global variable, etc. No luck.

1 Like

Unfortunately, it’s not possible to disable the warning, but we added your request to our TODO list for the future update (there will probably be a new global variable that can suppress this warning).

1 Like