iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-16-2008, 05:00 PM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Question mysqldump How to use locally

I have a number of MySQL large, about 2 GB all together database split into smaller sections of various sizes

I want to use it locally, to test it,

I've tried BigDump but this is slow and returns errors, (Line 3001, file sizes are basically too big).

I've tried to change some settings in BigDump to get it to work locally but it just crashes, my file sizes are just too big for local use.

I use BigDump to set up on the server, (I just have cPanel, phpmyadmin), this works well but far, far too slow. I only have 2Mb/s speed, (and that is the fastest download, upload is slower).

I manly use PERL

I have tried the below DOS Batch command and this definetly connects to the database as the please_add_this_on.sql is changed locally after using this command.

If I change the > to a < it displays the database in the DOS window.

But I wanted to add the please_add_this_on.sql to the database that is locally working

The first SQL file has the header to drop the database, and set up the variables etc...

Then each SQL file I want to add on is just a text file made similar to this:-
INSERT INTO `database_name` VALUES ('TESTLINE1 ', 'TEST LINE 1’, 'more data');
INSERT INTO `database_name` VALUES ('TESTLINE 2', 'TEST LINE 2’, 'more data');

My SQL databases are fine they work well on the server host, although it’s a pain to change them because of my internet and BigDump speed

Is there a way to add the databases together as one and do this locally?

Is there a quicker way to update the databases remotely?

You will see below I use the wamp server locally

bat file:


@ECHO OFF
CLS
ECHO.
ECHO mysqldump
ECHO.
C:
CD\
CD \wamp\bin\mysql\mysql5.1.30\bin
mysqldump --user=root --password=databasepassword --opt databasename > please_add_this_on.sql
ECHO.
ECHO Finished.
ECHO.
PAUSE
ECHO.

Last edited by TrafficProducer; 12-16-2008 at 05:11 PM.
Reply With Quote
  #2 (permalink)  
Old 12-18-2008, 03:46 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: mysqldump How to use locally

Ive found a different way to do it, (locally) at least.


I should also be able to use the same method to import the data to the remote host as well, not tried yet!

Still woundering about mysqldump
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Benefits of hosting Googles urchin.js locally modrewrite Webmaster Resources Discussion Forum 1 03-31-2007 08:52 AM
Locally Targeted Ads, Links, and Offers Coming to CBS Stati WPW_Feedbot Search Engine Optimization Forum 0 11-30-2005 07:30 PM
Free 411 Service With Locally Targeted Advertising jmiller Marketing Strategies Discussion Forum 0 09-26-2005 05:42 PM
Classifieds Still King but Paid Search Looms Locally WPW_Feedbot Marketing Strategies Discussion Forum 0 09-24-2005 03:56 AM
Any suggestions for locally based businesses? noelgiger Google Discussion Forum 4 06-08-2005 11:14 AM


All times are GMT -4. The time now is 03:39 AM.



Search Engine Optimization by vBSEO 3.3.0