mysql會話變量與全局變量

show session variables;查看會話變量

show session variables like "%log";模糊查詢

set autocommit ='off';(同等 set @@session.autocommit ='off'; )更改autocommit爲off 

select @@session.autocommit 查看指定變量(autocommit)

show global variables;查看全局變量

set global  autocommit ='off';同等 set @@global.autocommit ='off'; )更改autocommit爲off 

select @@global.autocommit 查看指定變量(autocommit)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章