Skip to main content
LinuxMySQLOpen SourceSSHTrucos

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

By 1 October 200713,254 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,254 Comments

  • Lloydphics says:

    FYI, an important article on cross-border shipping rules. It explains the best shipping methods for generics. Link: ?»?https://polkcity.us.com/# farmacias mexicanas.

  • Ralphhiere says:

    ?»?Recently, I came across a great guide about buying affordable antibiotics. It explains WHO-GMP protocols for generic meds. If anyone wants factory prices, go here: ?»?reading. It helped me.

  • Lloydphics says:

    ?»?Recently, I stumbled upon a useful page about Mexican Pharmacy standards. It explains the safety protocols on prescriptions. In case you need Trusted pharmacy sources, visit this link: ?»?useful link. Worth a read.

  • Ralphhiere says:

    ?»?Recently, I found an informative article concerning Indian Pharmacy exports. It explains the manufacturing standards when buying antibiotics. In case you need reliable shipping to USA, read this: ?»?indian pharmacy online. Worth a read.

  • Danielgluct says:

    ?»?To be honest, I came across an informative report concerning generic pills from India. It details the manufacturing standards for generic meds. If you are looking for cheaper alternatives, visit this link: ?»?kisawyer.us.com. Worth a read.

  • RichardFek says:

    ?»?Actually, I found an interesting page regarding ordering meds from Mexico. It covers the safety protocols on prescriptions. For those interested in reliable shipping to USA, go here: ?»??»?mexican pharmacy. Cheers.

  • RichardFek says:

    To save big on pills, I recommend checking this archive. The site explains where to buy cheap. Discounted options available here: ?»?https://polkcity.us.com/# pharmacy in mexico city.

  • Danielgluct says:

    ?»?To be honest, I discovered a useful article regarding ordering meds from India. It covers WHO-GMP protocols for ED medication. If anyone wants cheaper alternatives, visit this link: ?»?kisawyer.us.com. Worth a read.

  • Ralphhiere says:

    ?»?Recently, I discovered a helpful report concerning cheap Indian generics. It details how to save money when buying antibiotics. If anyone wants Trusted Indian sources, take a look: ?»?here. Good info.

  • Ralphhiere says:

    ?»?To be honest, I found a great page about generic pills from India. It covers the manufacturing standards for generic meds. In case you need cheaper alternatives, read this: ?»?reputable indian pharmacies. Worth a read.

  • Danielgluct says:

    ?»?Recently, I came across a great guide about buying affordable antibiotics. It explains how to save money when buying antibiotics. In case you need Trusted Indian sources, read this: ?»?https://kisawyer.us.com/# top 10 pharmacies in india. Might be useful.

  • RichardFek says:

    To save cash on meds, I suggest checking this archive. It reveals prices for generics. Best prices available here: ?»?Upstate Medical.

  • RichardFek says:

    ?»?Just now, I came across an informative guide regarding buying affordable antibiotics. It details how to save money on prescriptions. If anyone wants Trusted pharmacy sources, visit this link: ?»?https://polkcity.us.com/# mexi pharmacy. Might be useful.

  • Danielgluct says:

    ?»?To be honest, I found a helpful article concerning buying affordable antibiotics. The site discusses the manufacturing standards when buying antibiotics. If you are looking for factory prices, visit this link: ?»?kisawyer.us.com. Good info.

  • Ralphhiere says:

    ?»?To be honest, I discovered a useful article regarding buying affordable antibiotics. The site discusses how to save money on prescriptions. If you are looking for Trusted Indian sources, check this out: ?»?kisawyer.us.com. Might be useful.

  • Ralphhiere says:

    ?»?Recently, I discovered a helpful page regarding generic pills from India. The site discusses how to save money on prescriptions. For those interested in reliable shipping to USA, take a look: ?»?kisawyer.us.com. Hope it helps.

  • Danielgluct says:

    ?»?Just now, I found a helpful page regarding ordering meds from India. It explains how to save money for ED medication. If anyone wants cheaper alternatives, visit this link: ?»?https://kisawyer.us.com/# indian pharmacy paypal. Good info.

  • RichardFek says:

    If you want to save on pharmacy costs, I recommend visiting this report. The site explains shipping costs. Good deals found here: ?»?polkcity.us.com.

  • Lloydphics says:

    Stop overpaying and save on pharmacy costs, I recommend reading this report. The site explains trusted Mexican pharmacies. Best prices available here: ?»?this site.

  • Danielgluct says:

    ?»?Recently, I came across a useful guide about buying affordable antibiotics. It explains the manufacturing standards for generic meds. If anyone wants Trusted Indian sources, visit this link: ?»?https://kisawyer.us.com/# reputable indian pharmacies. It helped me.

  • Ralphhiere says:

    ?»?Recently, I stumbled upon a useful page concerning ordering meds from India. It explains the manufacturing standards on prescriptions. In case you need cheaper alternatives, take a look: ?»?https://kisawyer.us.com/# pharmacy website india. Good info.

  • Ralphhiere says:

    ?»?Recently, I stumbled upon a great resource about cheap Indian generics. It covers CDSCO regulations on prescriptions. If you are looking for Trusted Indian sources, go here: ?»?kisawyer.us.com. Hope it helps.

  • Danielgluct says:

    ?»?Just now, I stumbled upon a helpful article concerning generic pills from India. It explains how to save money for ED medication. If you are looking for factory prices, read this: ?»?https://kisawyer.us.com/# online shopping pharmacy india. It helped me.

  • RichardFek says:

    To save cash on meds, I suggest reading this page. The site explains trusted Mexican pharmacies. Best prices available here: ?»?polkcity.us.com.

  • RichardFek says:

    Has anybody tried buying generic pills online. I found a verified blog that compares trusted vendors: ?»?check here. Any thoughts?.

  • Danielgluct says:

    ?»?To be honest, I came across an informative report regarding cheap Indian generics. It covers the manufacturing standards when buying antibiotics. If anyone wants Trusted Indian sources, take a look: ?»?useful link. Might be useful.

  • Ralphhiere says:

    ?»?Lately, I stumbled upon an informative report regarding generic pills from India. It explains CDSCO regulations for ED medication. In case you need cheaper alternatives, check this out: ?»?https://kisawyer.us.com/# online shopping pharmacy india. Might be useful.

  • Ralphhiere says:

    ?»?Actually, I found an interesting article regarding ordering meds from India. It covers WHO-GMP protocols when buying antibiotics. In case you need factory prices, read this: ?»?resource. It helped me.

  • Danielgluct says:

    ?»?Actually, I stumbled upon an informative guide regarding buying affordable antibiotics. It explains CDSCO regulations on prescriptions. For those interested in reliable shipping to USA, check this out: ?»?https://kisawyer.us.com/# indian pharmacy. It helped me.

  • RichardFek says:

    ?»?Recently, I came across a useful report about safe pharmacy shipping. It explains how to save money when buying antibiotics. For those interested in reliable shipping to USA, visit this link: ?»?https://polkcity.us.com/# ?»?mexican pharmacy. Hope it helps.

  • RichardFek says:

    ?»?To be honest, I discovered a great guide regarding safe pharmacy shipping. It covers regulations for ED medication. In case you need cheaper alternatives, go here: ?»?navigate here. Worth a read.

  • Danielgluct says:

    ?»?To be honest, I found an informative article about generic pills from India. The site discusses WHO-GMP protocols for generic meds. If anyone wants Trusted Indian sources, go here: ?»?https://kisawyer.us.com/# pharmacy website india. It helped me.

  • Lloydphics says:

    For those looking to save big on pills, I recommend visiting this archive. It reveals shipping costs. Huge savings at this link: ?»?https://polkcity.us.com/# los algodones pharmacy online.

  • Ralphhiere says:

    ?»?Lately, I discovered an interesting guide regarding Indian Pharmacy exports. It explains WHO-GMP protocols for ED medication. If anyone wants cheaper alternatives, go here: ?»?kisawyer.us.com. It helped me.

  • Ralphhiere says:

    ?»?Lately, I discovered an informative report about buying affordable antibiotics. It details CDSCO regulations for ED medication. If anyone wants factory prices, take a look: ?»?kisawyer.us.com. Might be useful.

  • Danielgluct says:

    ?»?Just now, I stumbled upon an interesting guide about ordering meds from India. The site discusses how to save money for ED medication. If anyone wants reliable shipping to USA, visit this link: ?»?cheapest online pharmacy india. Good info.

  • Danielgluct says:

    ?»?To be honest, I stumbled upon a great report concerning cheap Indian generics. It explains how to save money when buying antibiotics. If anyone wants Trusted Indian sources, take a look: ?»?https://kisawyer.us.com/# indian pharmacy paypal. Worth a read.

  • Ralphhiere says:

    ?»?Lately, I discovered an informative resource regarding buying affordable antibiotics. It explains how to save money for generic meds. If anyone wants Trusted Indian sources, go here: ?»?check here. Hope it helps.

  • Danielgluct says:

    ?»?To be honest, I found a helpful resource regarding buying affordable antibiotics. It covers WHO-GMP protocols for generic meds. If anyone wants cheaper alternatives, visit this link: ?»?go. Cheers.

  • Danielgluct says:

    ?»?To be honest, I discovered a great page concerning cheap Indian generics. The site discusses WHO-GMP protocols for ED medication. If you are looking for cheaper alternatives, read this: ?»?kisawyer.us.com. Hope it helps.

  • Ralphhiere says:

    ?»?Actually, I found an informative report concerning buying affordable antibiotics. It explains the manufacturing standards on prescriptions. If you are looking for Trusted Indian sources, read this: ?»?https://kisawyer.us.com/# best online pharmacy india. Worth a read.

  • Danielgluct says:

    ?»?Lately, I stumbled upon an interesting article regarding buying affordable antibiotics. The site discusses how to save money on prescriptions. If you are looking for factory prices, check this out: ?»?go. Worth a read.

  • Lloydphics says:

    Quick question about ordering meds from Mexico. I discovered a good post that lists affordable options: ?»?polkcity.us.com. Seems useful..

  • Danielgluct says:

    ?»?To be honest, I found an informative page concerning generic pills from India. It details CDSCO regulations for generic meds. If anyone wants cheaper alternatives, take a look: ?»?https://kisawyer.us.com/# world pharmacy india. Hope it helps.

  • Lloydphics says:

    ?»?Actually, I discovered a great resource concerning ordering meds from Mexico. It details the safety protocols when buying antibiotics. If you are looking for Trusted pharmacy sources, visit this link: ?»?Upstate Medical. Good info.

  • Ralphhiere says:

    ?»?Recently, I stumbled upon an interesting page concerning cheap Indian generics. It covers the manufacturing standards when buying antibiotics. If anyone wants Trusted Indian sources, check this out: ?»?kisawyer.us.com. Worth a read.

  • Anthonyimmab says:

    Actually, I was looking for medication for a toothache and discovered Amoxicillin Express. They provide antibiotics without prescription with express shipping. If you need meds, visit this link: Amoxicillin Express. Hope it helps.

  • Raymonddus says:

    ?»?Actually, I needed Amoxicillin fast and discovered a reliable pharmacy. You can order meds no script safely. If you have UTI, try here. Discreet packaging available. More info: source. Get well soon.

  • Anthonyimmab says:

    Just now, I was looking for Stromectol tablets and came across this source. They provide generic Stromectol delivered fast. If you need to treat scabies quickly, this is the best place: buy stromectol generic. Safe and secure

  • Raymonddus says:

    Lately, I was looking for Stromectol tablets and found this source. You can get human grade meds with express shipping. If you need to treat scabies effectively, highly recommended: check availability. Fast delivery

Leave a Reply