Skip to main content
LinuxMySQLOpen SourceSSHTrucos

Como Copiar una Base De Datos (MySQL) de un servidor a otro por SSH.

By 1 October 200713,251 Comments

Recientemente tuve este dilema ya que querí­a pasar la Base de datos de uno de mis servidores a otro, entendí­ que la manera mas fácil era atravez de SSH (shell/ Terminal) antes de esto siempre entraba a phpMyAdmin hacia un backup del la base de datos y luego entraba al panel de phpMyAdmin del otro servidor y la subí­a. Pero me encontré con un problema mas grande, al tratar de hacer esto en el nuevo servidor me daba un limite de solo subir por el upload “10MB” esto obviamente comprimido por que las base de datos pesaba “120MB” comprimido era unos “12MB” imaginen eso por solo “2MB” no podí­a subir una base de datos.

Recordé entonces el famoso mysqlDump que hace un backup de tu base, pero me pregunte aja eso es fácil lo mismo que puedo hacer atravez del Admin de MySQL el problema es como la paso al otro servidor para que la suba? Yo soy bien amante del “SCP” (Secure Copy) de Linux que es la manera mas fácil y segura de pasar archivos atravez de un red por SSH. Luego de tener idea de lo que querí­a y necesitaba me di a la tarea de buscar y luego de un rato encontré mi solución y salvación!

Este es el comando que debes utilizar

mysqldump -utuuser -pmolongo tudb | ssh [email protected] "mysql -upapanga -pplancheta -h mysql.vidanix.com tudb"

En palabras mas fáciles, lo que estamos haciendo aquí­ es ejecutar un MySQL Dump (backup de db y luego transferir esta data a nuestro otro servidor por SSH y además de esto decirle que lo vamos a subir con el siguiente user y password en la siguiente tabla utilizando el siguiente subdominio. Si te fijas bien casa user y password esta empezado por el comando -u ó -p luego de esto pones el username o password todo corrido, sin espacios igualito a como aparece en el ejemplo. En algunos casos al pasar la base de datos a otro servidor nuestro proveedor tiene un servidor exclusivo de MySQL por eso al final hice referencia a -h (hostname) de ser “localhost” solo elimina la -h y listo. Ya tienes como hacer backup de una base de datos a otra todo por SSH, quien dijo que por GUI era mas fácil?

*Asegura-te de haber creado el db con el nombre que de-ses y el usuario antes de ejecutar este comando si no, no obtendrás ningún resultado.

Ultimos 10 Temas Por Ernesto

13,251 Comments

  • VincentClant says:

    Situs Bonaslot adalah agen judi slot online terpercaya di Indonesia. Banyak member sudah merasakan Maxwin sensasional disini. Transaksi super cepat hanya hitungan menit. Link alternatif ?»?situs slot resmi gas sekarang bosku.

  • VincentClant says:

    Situs Bonaslot adalah agen judi slot online terpercaya di Indonesia. Ribuan member sudah merasakan Jackpot sensasional disini. Transaksi super cepat kilat. Situs resmi ?»?login sekarang gas sekarang bosku.

  • Ernestjex says:

    Online slot oynamak isteyenler i?§in k?±lavuz niteli??inde bir site: ?»?listeyi g?¶r Nerede oynan?±r diye d??????nmeyin. Onayl?± casino siteleri listesi ile rahat?§a oynay?±n. T??m liste linkte.

  • Shaunjag says:

    Yeni Pin Up giri?? ??nvan?±n?± axtaranlar, bura baxa bil?™rsiniz. Bloklanmayan link vasit?™sil?™ hesab?±n?±za girin v?™ qazanma??a ba??lay?±n. Pulsuz f?±rlanmalar sizi g?¶zl?™yir. Ke?§id: ?»?https://pinupaz.jp.net/# sayta ke?§id u??urlar.

  • Ernestjex says:

    Online slot oynamak isteyenler i?§in rehber niteli??inde bir site: ?»?siteyi incele Hangi site g??venilir diye d??????nmeyin. Onayl?± bahis siteleri listesi ile sorunsuz oynay?±n. Detaylar linkte.

  • Earnestringe says:

    Pin-Up AZ ?¶lk?™mizd?™ ?™n populyar platformad?±r. Burada minl?™rl?™ oyun v?™ Aviator var. Qazanc?± kart?±n?±za an?±nda k?¶?§??r??rl?™r. Mobil t?™tbiqi d?™ var, telefondan oynamaq ?§ox rahatd?±r. Giri?? linki ?»?bura daxil olun bax?±n.

  • Earnestringe says:

    Info slot gacor hari ini: mainkan Gate of Olympus atau Mahjong Ways di Bonaslot. Situs ini anti rungkad dan resmi. Bonus new member menanti anda. Akses link: ?»?Bonaslot login dan menangkan.

  • VincentClant says:

    Bonaslot adalah agen judi slot online terpercaya di Indonesia. Banyak member sudah merasakan Jackpot sensasional disini. Proses depo WD super cepat hanya hitungan menit. Situs resmi ?»?Bonaslot login jangan sampai ketinggalan.

  • VincentClant says:

    ?»?Selamlar, sa??lam casino siteleri bulmak istiyorsan?±z, bu siteye mutlaka g?¶z at?±n. Lisansl?± firmalar?± ve bonuslar?± sizin i?§in listeledik. Doland?±r?±lmamak i?§in do??ru adres: ?»?mobil ?¶deme bahis iyi kazan?§lar.

  • Ernestjex says:

    2026 y?±l?±nda pop??ler olan casino siteleri hangileri? Detayl?± liste web sitemizde mevcuttur. Bedava bahis veren siteleri ve yeni adres linklerini payla???±yoruz. ?°ncelemek i?§in ?»?buraya t?±kla f?±rsat?± ka?§?±rmay?±n.

  • Ernestjex says:

    Online slot oynamak isteyenler i?§in rehber niteli??inde bir site: ?»?g??venilir casino siteleri Hangi site g??venilir diye d??????nmeyin. Edit?¶rlerimizin se?§ti??i casino siteleri listesi ile rahat?§a oynay?±n. T??m liste linkte.

  • Earnestringe says:

    Bu sene en ?§ok kazand?±ran casino siteleri hangileri? Cevab?± platformumuzda mevcuttur. Deneme bonusu veren siteleri ve g??ncel giri?? linklerini payla???±yoruz. Hemen t?±klay?±n ?»?https://cassiteleri.us.org/# en iyi casino siteleri f?±rsat?± ka?§?±rmay?±n.

  • Earnestringe says:

    Situs Bonaslot adalah agen judi slot online nomor 1 di Indonesia. Ribuan member sudah merasakan Maxwin sensasional disini. Proses depo WD super cepat hanya hitungan menit. Link alternatif ?»?situs slot resmi gas sekarang bosku.

  • VincentClant says:

    ?»?Merhaba arkada??lar, ?¶deme yapan casino siteleri bulmak istiyorsan?±z, haz?±rlad?±???±m?±z listeye mutlaka g?¶z at?±n. Lisansl?± firmalar?± ve bonuslar?± sizin i?§in listeledik. G??venli oyun i?§in do??ru adres: ?»?https://cassiteleri.us.org/# t??rk?§e casino siteleri iyi kazan?§lar.

  • Arthurgluch says:

    Hey guys, Just now stumbled upon the best website to save on Rx. If you want to buy generic pills safely, IndiaPharm is the best place. It has secure delivery guaranteed. Take a look: indian pharmacy. Cheers.

  • CarrolHed says:

    Hello everyone, I recently discovered a reliable website for cheap meds. If you want to save money and need cheap antibiotics, this store is worth checking out. No prescription needed and very reliable. Link is here: https://pharm.mex.com/#. Best regards.

  • JamesmaiBe says:

    To be honest, I recently discovered an awesome website to save on Rx. If you want to save money and need meds from Mexico, this store is worth checking out. Great prices plus secure. Take a look: click here. Appreciate it.

  • JamesmaiBe says:

    Hey guys, I just discovered a great online drugstore for affordable pills. If you want to buy medicines from India without prescription, IndiaPharm is highly recommended. You get secure delivery guaranteed. Visit here: order medicines from india. Hope it helps.

  • CarrolHed says:

    Hello, I just came across a great online drugstore to buy generics. For those looking for medicines from India safely, this store is very reliable. It has lowest prices worldwide. More info here: https://indiapharm.in.net/#. Hope it helps.

  • Davidpaync says:

    Hey guys, I recently came across an amazing Indian pharmacy for cheap meds. For those looking for medicines from India without prescription, this store is highly recommended. They offer secure delivery worldwide. Take a look: India Pharm Store. Hope it helps.

  • Davidpaync says:

    Hey there, Just now came across a trusted online source for affordable pills. If you are tired of high prices and want cheap antibiotics, this site is the best option. Fast shipping and it is safe. Link is here: https://pharm.mex.com/#. Take care.

  • Arthurgluch says:

    Hey guys, I just came across the best online drugstore to buy generics. If you need generic pills without prescription, this store is worth checking. You get lowest prices worldwide. More info here: https://indiapharm.in.net/#. Good luck.

  • Arthurgluch says:

    To be honest, I just stumbled upon a useful source from India to buy generics. If you need medicines from India at factory prices, this store is worth checking. You get wholesale rates worldwide. More info here: read more. Cheers.

  • JamesmaiBe says:

    Greetings, I recently found a trusted Mexican pharmacy to buy medication. If you are tired of high prices and need meds from Mexico, this site is highly recommended. Great prices and very reliable. Take a look: this site. Many thanks.

  • JamesmaiBe says:

    Hello, I just came across an amazing online drugstore to buy generics. If you want to buy ED meds without prescription, this store is the best place. They offer fast shipping guaranteed. Take a look: India Pharm Store. Good luck.

  • CarrolHed says:

    Hey there, Just now ran into a great online source for cheap meds. If you are tired of high prices and need meds from Mexico, this store is worth checking out. Fast shipping and very reliable. Link is here: Pharm Mex. Have a nice day.

  • CarrolHed says:

    Greetings, I recently found the best Indian pharmacy for cheap meds. If you need generic pills without prescription, IndiaPharm is highly recommended. They offer wholesale rates to USA. Take a look: check availability. Good luck.

  • Arthurgluch says:

    Greetings, Lately found a trusted Mexican pharmacy for affordable pills. If you want to save money and want meds from Mexico, this store is the best option. No prescription needed and secure. Link is here: read more. Peace.

  • Arthurgluch says:

    To be honest, Lately came across a reliable resource for affordable pills. If you are tired of high prices and need cheap antibiotics, this store is the best option. Fast shipping plus very reliable. Check it out: mexican pharmacy. Best of luck.

  • JamesmaiBe says:

    Hi all, Just now discovered an amazing source from India for affordable pills. For those looking for medicines from India at factory prices, IndiaPharm is the best place. You get wholesale rates guaranteed. More info here: https://indiapharm.in.net/#. Cheers.

  • JamesmaiBe says:

    Greetings, Just now found the best website for cheap meds. For those looking for generic pills without prescription, this site is highly recommended. You get fast shipping guaranteed. Visit here: order medicines from india. Cheers.

  • CarrolHed says:

    To be honest, Just now discovered an amazing online drugstore for cheap meds. If you want to buy ED meds cheaply, IndiaPharm is highly recommended. They offer secure delivery guaranteed. Visit here: buy meds from india. Best regards.

  • Davidpaync says:

    Hello everyone, Lately ran into a great resource for affordable pills. For those seeking and want affordable prescriptions, this store is highly recommended. They ship to USA and it is safe. Link is here: buy meds from mexico. Be well.

  • Davidpaync says:

    Hey guys, Lately discovered a great source from India to save on Rx. If you want to buy generic pills without prescription, this site is highly recommended. They offer lowest prices worldwide. Visit here: indiapharm.in.net. Hope it helps.

  • Arthurgluch says:

    Hey guys, I just came across a useful source from India to save on Rx. If you want to buy ED meds cheaply, this store is worth checking. They offer wholesale rates worldwide. More info here: click here. Cheers.

  • Arthurgluch says:

    To be honest, I recently came across a reliable resource to save on Rx. If you want to save money and want cheap antibiotics, Pharm Mex is the best option. Fast shipping plus secure. Check it out: https://pharm.mex.com/#. Warmly.

  • JamesmaiBe says:

    Hi guys, Just now ran into a great resource for affordable pills. For those seeking and want affordable prescriptions, this store is highly recommended. Fast shipping and it is safe. Link is here: https://pharm.mex.com/#. Have a nice day.

  • JamesmaiBe says:

    Hi all, Lately discovered the best source from India for cheap meds. If you need ED meds cheaply, this store is highly recommended. You get lowest prices worldwide. Take a look: cheap indian generics. Best regards.

  • CarrolHed says:

    Hi guys, I just discovered a trusted website to buy medication. If you are tired of high prices and want meds from Mexico, Pharm Mex is the best option. Great prices plus it is safe. Check it out: cheap antibiotics mexico. Thank you.

  • CarrolHed says:

    Hello everyone, Lately discovered a reliable resource to save on Rx. If you want to save money and want affordable prescriptions, this site is a game changer. No prescription needed plus it is safe. Take a look: https://pharm.mex.com/#. Kind regards.

  • Arthurgluch says:

    To be honest, Lately came across the best Indian pharmacy to save on Rx. For those looking for cheap antibiotics without prescription, this site is very reliable. You get wholesale rates worldwide. Take a look: read more. Cheers.

  • Arthurgluch says:

    Greetings, I just ran into a reliable resource for affordable pills. For those seeking and need generic drugs, Pharm Mex is worth checking out. No prescription needed and secure. Link is here: https://pharm.mex.com/#. Thx.

  • JamesmaiBe says:

    Hey guys, Just now found a great Indian pharmacy for cheap meds. For those looking for ED meds safely, this store is highly recommended. They offer secure delivery guaranteed. Check it out: https://indiapharm.in.net/#. Best regards.

  • JamesmaiBe says:

    Hello, I recently discovered the best website for affordable pills. If you need ED meds without prescription, this site is very reliable. It has wholesale rates guaranteed. Take a look: https://indiapharm.in.net/#. Hope it helps.

  • CarrolHed says:

    To be honest, Just now found a great Mexican pharmacy for cheap meds. If you want to save money and need generic drugs, this site is a game changer. Fast shipping and it is safe. Take a look: click here. Best regards.

  • CarrolHed says:

    To be honest, Lately came across the best online drugstore for cheap meds. If you want to buy medicines from India cheaply, this site is highly recommended. You get lowest prices guaranteed. Check it out: cheap indian generics. Good luck.

  • Davidpaync says:

    Hello everyone, I just came across a reliable Mexican pharmacy to buy medication. For those seeking and want affordable prescriptions, this store is the best option. They ship to USA and very reliable. Link is here: mexican pharmacy. Good luck!

  • JamesmaiBe says:

    Hi all, Lately found a useful online drugstore for cheap meds. If you need medicines from India at factory prices, IndiaPharm is very reliable. They offer fast shipping to USA. Take a look: https://indiapharm.in.net/#. Best regards.

  • Arthurgluch says:

    Hello everyone, Just now found a reliable Mexican pharmacy to buy medication. If you are tired of high prices and need meds from Mexico, this store is worth checking out. No prescription needed and very reliable. Check it out: https://pharm.mex.com/#. Take care.

  • Davidpaync says:

    Hey guys, Lately stumbled upon a great Indian pharmacy for affordable pills. If you want to buy medicines from India at factory prices, this site is very reliable. It has lowest prices to USA. More info here: indiapharm.in.net. Hope it helps.

Leave a Reply