Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

Moving Databases to a seperate machine

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
hiddenmagic
Posts: 2
Joined: Sun Jul 05, 2015 12:31 am

Moving Databases to a seperate machine
  • Quote

Post by hiddenmagic » Sun Jul 05, 2015 12:37 am

Good Day Everyone,

I have a single web server that has been running Vesta for over a year now. The client list has grown, and it's served us well. We're very happy with VestaCP, and don't intend on using anything else. However, as our business has grown we've thrown more and more clients on this single machine. We're starting to worry about redundancy, and backup machines.

I now have several servers with which I would like to distribute the load of the entire system. Adding a seperate database host was very simple. However, my question is how do I move the databases off the single server and to our new MYSQL machine?

I've removed the public IP from the MYSQL server and it connects just fine with the Vesta server. I tested it with a single MYSQL Dump and a site that rests on the old server, and it was seamless.

However, even with all the great Vesta scripts I can't seem to find anything that will allow me to migrate all of the databases from one machine to another.I see it's possible to create new ones on the new machine, but that's not what I'm looking to do.

Any feedback would be great.

Running Ubuntu 14.04 TT on each server
Top

mazga
Posts: 2
Joined: Sat Feb 13, 2016 7:54 pm

Re: Moving Databases to a seperate machine
  • Quote

Post by mazga » Sat Feb 13, 2016 7:59 pm

Hi!

I´m new to VestaCP, i know Vestacp isn´t multi server but is there a easy way to use another physical SQL Server (MySQL or MariaDB) instead of localhost installation? Because of my SQL load now i cant put them onto same server (older harware HP G5)

thx!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Moving Databases to a seperate machine
  • Quote

Post by skurudo » Wed Feb 17, 2016 10:09 am

hiddenmagic wrote: However, even with all the great Vesta scripts I can't seem to find anything that will allow me to migrate all of the databases from one machine to another.I see it's possible to create new ones on the new machine, but that's not what I'm looking to do.
Mysql Master-Master = 2 mysql on different servers or manual mirgarion ;-(
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Moving Databases to a seperate machine
  • Quote

Post by skurudo » Wed Feb 17, 2016 10:10 am

mazga wrote:I´m new to VestaCP, i know Vestacp isn´t multi server but is there a easy way to use another physical SQL Server (MySQL or MariaDB) instead of localhost installation? Because of my SQL load now i cant put them onto same server (older harware HP G5)
You can add different host for database, like this:

Code: Select all

$ v-add-database-host
Error: not enought arguments
Usage: v-add-database-host TYPE HOST DBUSER DBPASS [MAX_DB] [CHARSETS] [TPL]
Top

mazga
Posts: 2
Joined: Sat Feb 13, 2016 7:54 pm

Re: Moving Databases to a seperate machine
  • Quote

Post by mazga » Thu Feb 18, 2016 8:01 pm

thx4answer, must be VestaCP installed on mysql only server or can it be any mysql/maria db server?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Moving Databases to a seperate machine
  • Quote

Post by skurudo » Fri Feb 19, 2016 12:47 pm

mazga wrote:must be VestaCP installed on mysql only server or can it be any mysql/maria db server?
VestaCP install mysql (for now), variations with MariaDB will be later (I hope),
but you can change mysql to mariadb - there is no harm with this update.
As different localhost (local and remote), I hope, will be work good.

PS: One thing, that bothers me, mysql + mariadb in cluster.. it's not your case, I think.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password