Is there a command that I can send to MySQL to make sure it's up, working and not locked? We run a directory and sometimes the table is locked because of sorting or updating and I would like to be able to default to the backup database when this happens.
Mar 1, 2002, 12:37 AM
Veteran / Moderator (18441 posts)
Mar 1, 2002, 12:37 AM
Post #2 of 3
Views: 2790
How about opening and closing MySQL before anything else, and seeing what is returned? If you get an error, then either make it loop back and try again (for x attempts, otherwise if it is offline then it will bog down your server with re-trys)...
Not sure if that is what you were asking...but I thought I'd give it a try
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Not sure if that is what you were asking...but I thought I'd give it a try
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!