LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-27-2010, 08:59 AM   #1
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
User privileges in Mysql replication


Dear Friends,

Might this is silly question but I am not much familiar to database.

I am doing master slave Mysql replication for load balancing.

On master server different database has different user privileges. I create backup using mysqldump command and restore on slave server instead of using load data from master; command.
When i replicate database from master to slave will i require to set user privileges same as master ?

One more question: How to lock all database in mysql?
Regards,

Last edited by sem007; 09-27-2010 at 09:01 AM. Reason: add info
 
Old 09-27-2010, 09:03 AM   #2
hairysocks
Member
 
Registered: May 2002
Location: Thorverton, Near Exeter, Devon, England
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105

Rep: Reputation: 16
No. You can different permissions on master and slave. I have my master user set with update, insert, delete, select, but the slave has only select.
 
Old 09-27-2010, 09:10 AM   #3
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Original Poster
Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by hairysocks View Post
No. You can different permissions on master and slave. I have my master user set with update, insert, delete, select, but the slave has only select.
thanks for replay.

You mean to say i don't want to configure privileges on slave.

One more question:

if i run below command it will lock only one db tables. right?

Code:
mysql> use db_name;
mysql> FLUSH TABLES WITH READ LOCK;
How can i lock all database/tables in mysql?

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql replication failed after mysql reboot ajayan Linux - Newbie 8 09-08-2010 11:00 AM
super user privileges check for a normal user in bash script freeindy Programming 2 08-01-2008 06:08 AM
mySQL - local user privileges Genjix Programming 2 12-03-2004 08:03 AM
MySQL problem with user privileges jriis Linux - Software 3 10-02-2003 09:20 AM
mysql replication cheng Linux - Software 1 08-22-2002 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration