Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQL データベースをシングル ユーザー モードにする方法を教えてください。またはさらに良いのは、読み取りモードのみです。
select * into outputfileMySQL側とSybase側でデータを渡すために使用していますbcp inが、両側で同じにしたいです。したがって、データベースを変更しないでおく必要があります。
select * into outputfile
bcp in
出来ますか?
に追加read_only=1しmy.cnfて、mysql を読み取り専用モードにすることができます
read_only=1
my.cnf
または、次のこともできますSET GLOBAL read_only=1;
SET GLOBAL read_only=1;