MySQL Replication
Has anyone done this? I am looking to have the same database on two servers that run Tacacs. The master would be the server that has teh webfront for the Tacacs, but both servers run their own version of Tacacs using the same information in the database. I found documentation regarding setting up replication, but it also pushes ALL the databases, not just a select few. One server is just running Tacacs, the other is also running a few other programs that use MySQL, and I dont want those databases to be replicated.
What I am wondering is if I have the one server that has just the one Database as the master, can I have multiple databases on the Slave server? |
Hmm... Well, instead of replicating, you could always allow remote (authenticated) access to mysqld and set Tacacs on the secondary server to use the master server's database directly (and remotely)? This seems far simpler than constant replication - using your method, if your database were altered often, you'd waste one heck of a lot of bandwidth sending that data to your secondary server. But that's just MHO :)
|
Quote:
|
Quote:
|
In replication the slave can have any number of databases from any number of masters using multiadmin. Also, the slave will replicate only the databases it knows about. i.e: Standard procedure is to not replicate the mysql db. That prevents breaking replication when you add or delete a user to the master.
However, you will not be able to modify the slave. Only use it for reports, backup, etc. |
Has anyone that does replication have the slave database get wiped out? It was working perfectly for weeks and then all of a sudden the one tacacs stopped taking requests and I found that its database was basically wiped out, only one table remained, the rest disappeared. How can a database get wiped without a drop being issued? The master database OTOH was fine, I was able to restore the busted one off of it.
|
All times are GMT -5. The time now is 04:59 PM. |