查看参数设置mysql> show global variables like '%max_binlog_size%';+-----------------+------------+| Variable_name | Value |+-----------------+------------+| max_binlog_size | 1073741824 |+-----------------+------------+ 1 row in set (0.00 sec) 查看产生的…
USE master; GO DECLARE @SQL VARCHAR(MAX); SET @SQL='' SELECT @SQL=@SQL+'; KILL '+RTRIM(SPID) FROM master..sysprocesses WHERE dbid=DB_ID('DataBaseName'); EXEC(@SQL); GO ALTER DATABASE DataBaseName SET MULTI_USER;…