P
P
pashaxp2016-01-15 15:20:43
linux
pashaxp, 2016-01-15 15:20:43

How to organize a MySQL database move?

There is a 700GB MySQL database, everything is in 1 file - ibdata1
The current server is limited in terms of disk space, the database is slowly filling up, it becomes relevant to transfer the database to a new server with more disk storage, and also make sure that the tables in the database are separate files.
How to do it right? With minimal downtime.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2016-01-15
@pashaxp

You can very quickly transfer the database with all the data Disable
writing
Transferring data
mysqldump -uroot DB |
mysql --host= host.com -uroot -ppass -C
DB

A
Andrew, 2016-01-15
@R0dger

master -> slave or master-> master
on the same MariaDB Galera Cluster
can be freely transferred .. the only thing of course, when transferring to the record, there will be a lock ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question