u9x
8-29-06, 07:34 PM
For some reason I was thinking there was a way to validate MySQL code/syntax within MySQL but I haven't found anything on it (I might have been confused with PHP's php_check_syntax() function which only checks PHP code).
Prior to migration, I'd been using a script on my local development box to download my database backups, determine the most recent one, and import it into my local MySQL server. However, with the still unresolved file corruption issues (http://forum.powweb.com/showthread.php?t=66725) on PW's side, I don't trust that the backups are surviving the transfer intact and want to validate the code before importing it. I could compare the filesize of a backup file on the remote to that on the local side but I don't particularly trust that method either (I've always seen minor variances in those as it is).
Can anyone tell me if there is an MySQL function or command-line option to test the code?
Prior to migration, I'd been using a script on my local development box to download my database backups, determine the most recent one, and import it into my local MySQL server. However, with the still unresolved file corruption issues (http://forum.powweb.com/showthread.php?t=66725) on PW's side, I don't trust that the backups are surviving the transfer intact and want to validate the code before importing it. I could compare the filesize of a backup file on the remote to that on the local side but I don't particularly trust that method either (I've always seen minor variances in those as it is).
Can anyone tell me if there is an MySQL function or command-line option to test the code?