Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
howto set mysql to readonly

howto set mysql to readonly

2006-06-30       - By Brent Baisley

 Back
Reply:     1     2     3     4     5     6  

Instead of "locking" the table, why not just change the privileges for the
specific accounts so they have select only privileges?
Then you still of write access through "admin" accounts if need be.

-- -- Original Message -- --
From: "Jehan PROCACCIA" <Jehan.Procaccia@(protected)>
To: <mysql@(protected)>
Sent: Friday, June 30, 2006 6:28 AM
Subject: howto set mysql to readonly


> Hello
>
> I need to move my databases from on server to an other.
> As lots of data are in production I cannot just stop mysql for 1/2 an hour
and reopen it on the new server.
> What I expect to do is while backuping and restoring to the new server, I
wish to set the original server in "read only" mode so
> that nobody can write in the databases while transfering to the new one.
> I've seen the LOCK table and flush commands, but I'am not sure if this is the
right method, and how to use them.
> Lock table just locks tables as it's name implies and not a whole database ?
is there a kind of "lock all databases" ?
>
> thanks.
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:    http://lists.mysql.com/mysql?unsub=brenttech@(protected)
>


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)