Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-26-2006, 12:16 PM
|
#1
|
Member
Registered: Aug 2006
Posts: 87
Rep:
|
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?
|
|
|
10-26-2006, 01:58 PM
|
#2
|
Member
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700
Rep:
|
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 
|
|
|
10-26-2006, 03:24 PM
|
#3
|
Member
Registered: Aug 2006
Posts: 87
Original Poster
Rep:
|
Quote:
Originally Posted by J_K9
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 
|
If I can get the Webui to do it, that is my preferred method instead of trying to maintain two databases. I will see if I can point the tacacs program itself to a different database via IP, but not quite sure how to do it. Linux is still fairly new to me, as I am too used to widoze, but heavy into Cisco CLI, its the placement of files that is taking me those most time learning, then learning how each program works after I locate them is the next thing.  At least I get paid to play with them! 
|
|
|
10-27-2006, 11:18 AM
|
#4
|
Member
Registered: Aug 2006
Posts: 87
Original Poster
Rep:
|
Quote:
Originally Posted by J_K9
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 
|
On further thought this would NOT work. If the Tacacs server that has the DB on it goes down, the secondary server has no DB to use, and would be worthless. I tried it out and tested it, actually got it working too, but when I broke the link, tacacs failed to work. Looks like I will need two DB afterall, so the question remains, can I have more DB's on the Client, than there are on the Master? I want to set the master on the primary Tacacs server, which is running a lower rev of MySQL and cannot be upgraded at this time, but only has one DB on it, the CLient will have Two additional DB's that are currently on it, and will be the secondary Tac server.
|
|
|
10-28-2006, 11:28 AM
|
#5
|
Member
Registered: Oct 2005
Location: Burley, WA
Distribution: Sabayon, Debian
Posts: 278
Rep: 
|
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.
Last edited by leandean; 10-28-2006 at 11:30 AM.
|
|
|
12-18-2006, 08:08 AM
|
#6
|
Member
Registered: Aug 2006
Posts: 87
Original Poster
Rep:
|
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 05:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|