1、 建立數據庫數據庫
CREATE DATABASE IF NOT EXISTS table_name DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
2、建立權限bash
grant all privileges on `001`.* to `001`@'%' identified by '001123'; grant all privileges on `004`.* to `004`@'%' identified by '004123';
3、刷新權限ide
flush privileges;
4、查詢SQL語句-查詢等於null的值,`answer`字段設置成0code
update `cn_examination_questions` set answer=0 where ISNULL(answer)
5、查看最大連接數量和設置連接數量ci
show variables like "max_connections"; set global max_connections = 500;
6、查看連接時長和設置連接時長it
show global variables like 'wait_timeout'; set global wait_timeout=10;