Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Too risky to modify a large MySQL database?"
Thanks for the comments. The problem is that with such a huge database file it is impossible to manage it across a 512kb ADSL connection. I think I will investigate asking the host to take a database back up for us then if it gets hosed they can restore it for us. One of the problems is that phpMySQLAdmin times out when handling large files across the web on a 512kb connection. Ever tried uploading >900 mb of data across a piece of wet string?
Thanks again.
As I mentioned, phpMySQLAdmin allows one to choose a compression scheme when downloading a backup, and as the backup is a text file full of SQL, it compresses very well - I just downloaded a 100+Mb database gzipped, and the actual file size is 8.6Mb.
As phpMySQLAdmin will also automagically recognise the compressed version of the database when re-uploaded, you may find that this meets your needs.
If that's not going to work for you because the backup is still too large, you can always decompress the backup and then edit it into a number of separate files, and insert them one by one.
Yes, it's laborious, but then again nobody ever said this stuff was easy (except Bill Gates and Steve Jobs, and they were both talking about something else, mainly involving sharing pictures of kittens playing with balls of wool).
HTH, and post again if you encounter any more difficulties - there's always another way to make things easy
Thanks for the comments. The problem is that with such a huge database file it is impossible to manage it across a 512kb ADSL connection. I think I will investigate asking the host to take a database back up for us then if it gets hosed they can restore it for us. One of the problems is that phpMySQLAdmin times out when handling large files across the web on a 512kb connection. Ever tried uploading >900 mb of data across a piece of wet string?
How do you administer the database? If it's via phpMyQLAdmin(which is often the case) then go to the "Export" tab. If the version you're using is less than 5.x.x, select the "SQL compatability mode" as appropriate (e.g. "MYSQL4)". At the bottom, tick the "Save as file" checkbox, select one of the compression schemes (otherwise it'll take ages to download) and hit the "Go" button. A zipped copy of the database will be downloaded to your machine; expand that and you'll have the .sql file necessary to restore the database if necessary.
If you really want to be cautious, install the same (or equivalent) version of mySQL locally and start it up. (Their numbering scheme is along the lines of 5.0.42; make sure you install a version where the first two numbers are the same.) Then download and install the mySQL Admin Tools, and use the mySQL Administrator to "Restore" the downloaded SQL into your local database.
Then apply the patch to your local copy, and check (using the mySQL Query Browser) that your data hasn't been hosed.
If all that goes well then cross your fingers and apply the patch to the live server. Once again, check all is well; if there's a problem, restore by uploading the compressed (zipped, gzipped or bzipped) file you downloaded at the start, using the "Import" tab of phpMySQLAdmin.
Leave a comment: