• 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.

Previously on "Too risky to modify a large MySQL database?"

Collapse

  • Fred Bloggs
    replied
    Originally posted by Ardesco View Post
    You could always save a backup locally on the server, that way you don't need to download it.
    Wow, I never knew you could do that! This is getting better all the time!

    Leave a comment:


  • Fred Bloggs
    replied
    Originally posted by TheFaQQer View Post
    Remember - this is CUK. We're here to help

    Leave a comment:


  • KevinS
    replied
    Originally posted by Sockpuppet View Post
    That as well.

    Did I say how fliping amazing I am. Truely I'm the greatest.
    And modest - let's not forget modest..

    Leave a comment:


  • Sockpuppet
    replied
    Originally posted by KevinS View Post
    Ego
    That as well.

    Did I say how fliping amazing I am. Truely I'm the greatest.

    Leave a comment:


  • Sir_Edward_Matheson
    replied
    Originally posted by KevinS View Post
    Ego

    HTH

    Bandwidth

    Leave a comment:


  • Ardesco
    replied
    You could always save a backup locally on the server, that way you don't need to download it.

    Leave a comment:


  • TheFaQQer
    replied
    Originally posted by Fred Bloggs View Post
    Thank you. I'm a Mechanical Engineer not an IT person so I'm very cautious with stuff on the limits of my knowledge/capabilities. Thanks again.
    Remember - this is CUK. We're here to help

    Leave a comment:


  • Fred Bloggs
    replied
    Get faster connection
    Not an option I'm afraid. We've only had ADSL for 2.5 years where I live and 512kb down 256kb upload is the fastest we can have, I've checked.

    HTH, and post again if you encounter any more difficulties - there's always another way to make things easy
    Thank you. I'm a Mechanical Engineer not an IT person so I'm very cautious with stuff on the limits of my knowledge/capabilities. Thanks again.

    Leave a comment:


  • KevinS
    replied
    Originally posted by Sockpuppet View Post
    By my penis is still bigger.
    Ego

    HTH

    Leave a comment:


  • Sockpuppet
    replied
    Originally posted by AtW View Post
    2. Get faster connection - my ADSL 2 has got 1.3 Mbits upload.

    By my penis is still bigger.

    Leave a comment:


  • NickFitz
    replied
    Originally posted by Fred Bloggs View Post
    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

    Leave a comment:


  • AtW
    replied
    Originally posted by Fred Bloggs View Post
    Ever tried uploading >900 mb of data across a piece of wet string?
    1. Use compression - that can reduce size by 10-20 times.

    2. Get faster connection - my ADSL 2 has got 1.3 Mbits upload.

    Leave a comment:


  • Fred Bloggs
    replied
    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.

    Leave a comment:


  • NickFitz
    replied
    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.

    Then go down the pub to celebrate

    Leave a comment:


  • Diver
    replied
    Wot he said

    Leave a comment:

Working...
X