Find Jobs
Hire Freelancers

MySQL Script to export/import a database table by table.

$10-30 USD

Cancelled
Posted over 8 years ago

$10-30 USD

Paid on delivery
Hello, I'm currently unable to export my MySQL database due to it's sheer size (Around 20GB), I've already tried various things like: - **Input**; Modifying and toying around with various configs like packet size in /etc/my.conf. **Output**; Always the same, Around 10GB in size it just stops exporting and that’s it. - **Input**; mysqldumping from another machine in the same lan and with internet access and more free space at the time. **Output**; didn’t work, would be really slow and stop at like 1GB - **Input**; Using the mysqldump with a grep to gzip the shit outta it. **Output**; 3GB size file, didn’t bother to import it to see it’s contents. None of these have worked so far, So I feel like my only option here is to have a custom CLI script which exports/imports a certain database’s tables by itself, it should only ask you the IP and Login credentials for the MySQL server where the database is hosted. I could do this job manually myself for one time, but I would like to look to this as an opportunity to develop a tool that can serve me for other sites and situations after this has been solved. The same tool should be able to export and import the tables but do it properly without much user input besides Auth/Login and providing the database name of the ones available on the MySQL server (If the Auth worked) or maybe just create a new one with the name of the *.sql file. I'd rather have this done in Bash, since PHP and Apache might not be available on some VM environments I work with. You would not have access to any of these machines, this script is supposed to work in any situation where certain requirements are met: - Needs to be a .sh script easily editable or CLI app that asks a few inputs before doing it's thing, no Ruby/Python or anything that needs 3rd party repos. - Sometimes not enough freespace to install heavy stuff (dependencies) of various GB's - I need some kind of logging, some kinda of input of what is doing and expected ETA, or at least a "(22/55) tables completed, exporting table 'users'......................" - In case of not enough space, only the table being imported or exported should be corrupted and I expect some way to handle that without much room for error on the user part (Probably the best way would be to add an extension to the files until they're fully exported at least. All my VM's use CentOS 6, so you can work with that to guess what's installed on it or not. If you wish, I can provide additional information in order to you to make a final quote, like detailed OS info and also what apps are already installed , and how much space available there's on each machine. I still expect to be able to use the scripts by myself, but every bit of information I can provide to help you solve this faster, the better. OS and Software - CentOS6.6.6 - 5.5.40 MySQL Community Server (GPL)
Project ID: 8246583

About the project

8 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
8 freelancers are bidding on average $42 USD for this job
User Avatar
i am mysql dba and having more then 5 yrs of experience and having good experience in migration , backup on server to other. i can do your task easily
$35 USD in 1 day
4.9 (2 reviews)
2.6
2.6
User Avatar
My team includes experienced sysadmins & developers who manage Cloud infrastructure(on AWS, Google Cloud, Rackspace) for various clients across globe for last 9 years. Other programming skills like ROR, Python, AngularJS, PHP. etc and automation tools used like Jenkins, chef etc. and Databases handled like Mysql, Postgresql, mongodb etc. I have understood the requirement and can create a script as per project description. Feel free to contact me for further discussion.
$133 USD in 1 day
5.0 (2 reviews)
2.2
2.2
User Avatar
A proposal has not yet been provided
$25 USD in 1 day
5.0 (1 review)
0.4
0.4
User Avatar
Hi, did you tried dumping your database with shell mysqldump command? That would be my first suggestion. If you need any help finishing that, just contact me. Thank you!
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi there! Your job sounds tailor made for me. Without writing 10 pages highlighting my accomplishments, let me just say that I am passionate about Linux! Solving your problem would be quickest using bash & mysqldump. I would write for you a script to do the following: 1. For the specified database, get a listing of all tables in the database. One easy way of doing this: echo "SHOW tables;" | mysql -u USER --password=PASSWORD DATABASE 2. Loop through each table and dump it to its own table: mysqldump -u USER --password=PASSWORD DATABASE TABLE 3. Provide feedback on each table. I would also create a temporary log file keeping the status of each server. This would mean that you can resume dumping a database if anything goes wrong. I look forward to hearing from you! Cheers Peter
$30 USD in 1 day
5.0 (1 review)
0.2
0.2
User Avatar
I have lot of experience in this particular requirement. Can also work on performance tuning of queries and databases.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I have made few script for mysql db backup and import/export. For more detail please contact me.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of MEXICO
Mexico
0.0
0
Member since Aug 11, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.