Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frimik/myimporter
MySQL Data Importer (Imports dump files from mydumper). myloader is now a component embedded in mydumper. Use that instead.
https://github.com/frimik/myimporter
mysql
Last synced: 1 day ago
JSON representation
MySQL Data Importer (Imports dump files from mydumper). myloader is now a component embedded in mydumper. Use that instead.
- Host: GitHub
- URL: https://github.com/frimik/myimporter
- Owner: frimik
- Created: 2011-01-24T09:22:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-03-21T23:39:51.000Z (over 13 years ago)
- Last Synced: 2024-10-16T07:06:15.569Z (about 1 month ago)
- Topics: mysql
- Homepage: https://github.com/mydumper/mydumper
- Size: 116 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
NAME
myimporter - Import dump files produced by mydumper
().SYNOPSIS
myimporter [options] [file.sql file2.sql.gz ...]OPTIONS
--host Host to connect to.--port Port, default: 3306
--user Database user.
--pass Database Password.
--database
Database (Schema) to import into. (Must exist).--socket
Specifies a local socket. Alternative to Host and Port.--threads
Number of threads to use. Defaults to number of processors found
in /proc/cpuinfo.--filter
Filename with tables to filter from the import. One table name
per line.DESCRIPTION
myimporter will import all files given as arguments in the order given.Recommendation is to list the biggest (or slowest to import) tables
first.EXAMPLE
Backing up database: *test*
mydumper --host db-server.example.com --user backup-user --password
pass --database test --threads 6 --outputdir /tmp/dump.test
--compressmysqldump -v --no-data --routines --host=db-server2
--user=backup-user --password=pass test >
/tmp/dump.test/.structure.sqlImporting previously backed up database *test*
mysql test < /tmp/dump.test/.structure.sqlls -1hS /tmp/dump.test/*.sql.gz | xargs myimporter --threads 8
--database test --user root --socket /mysql/main/run/mysql.sockls -1hS /tmp/dump.test/*.sql.gz | xargs myimporter --threads 8
--database test --user root --socket /tmp/mysql.sock --filter
/tmp/filter.txtDEPENDENCIES
threads
threads::shared
Thread::Queue
Time::HiRes
Time::Duration
Getopt::Long
Pod::UsageTOOD
Restore is limited to one specific database.AUTHOR
Mikael FridhACKNOWLEDGEMENTS
Domas Mituzas obviously.