mysql資料庫各項引數查詢

2021-10-02 12:32:42 字數 524 閱讀 8760

1.qps

show global status like 'question%';
2.tps

show global status like 'com_commit';

show global status like 'com_roolback';

3.執行緒連線數

show global status like 'max_used_connections';
show global status like 'threads%';
4.最大連線數

show variables like 'max_connections';
5.query cache

修改my.cnf

將query_cache_size設定為具體的大小,具體大小時多少取決於查詢的實際情況,但最好設定為1024的倍數,參考值32m

資料庫各項操作(三)

1 插入資料 2 修改資料 3 刪除資料 4 檢視 建立檢視 刪除檢視 查詢檢視 格式 insert into 表名 values 常量 例1 將乙個新學生元組 學號 200215128 姓名 陳冬 性別 男 所在系 is 年齡 18歲 插入到 student表中。insert into stude...

mysql資料庫引數詳解 MySQL資料庫基礎講解

資料庫安裝教程 mysql資料庫安裝語句 1.sudo apt get install mysql server 2.sudo apt get install mysql client 3.sudo apt get install libmysqlclient dev 查詢mysql是否安裝成功 s...

MySQL資料庫引數

資料庫引數 mysql資料庫的引數配置一般在my.ini配置檔案中修改 新增 部分引數也可以用set global 引數名 值 做臨時調整,重啟後失效 配置完後需要重啟資料庫才生效。引數1 innodb buffer pool size gb mb 說明 此引數類似於oracle的sga配置,當主機...