标签:star ble optimizer 查看 mat databases 语句 target 自动
数据库安装,待完善
https://www.cnblogs.com/wendy-0901/p/12673705.html
https://blog.csdn.net/yougoule/article/details/56680952
数据库启动
service mysql start;
数据库关闭
service mysql stop;
查看数据库运行状态
service mysql status;
连接命令
mysql -h ip -uroot -p
创建数据库
CREATE DATABASE dbname;
查看有哪些数据库
SHOW DATABASES;
选择要使用的库
USER DBNAME;
查看当前使用的库
SELECT DATABASE();
查看当前库有哪些表
SHOW TABLES;
查看表结构
DESCRIBE t_user;
查看trace
SET SESSION optimizer_trace="enabled=on",end_markers_in_json=ON;
SELECT * FROM t_user WHERE NAME > ‘Liming‘ order by age;
SELECT * FROM information_schema.OPTIMIZER_TRACE;
SET SESSION optimizer_trace="enabled=off";
查看变量设置
SHOW VARIABLES;
自动提交设置
SET AUTOCOMMIT=0 #禁止自动提交
SET AUTOCOMMIT=1 #开启自动提交
标签:star ble optimizer 查看 mat databases 语句 target 自动
原文地址:https://www.cnblogs.com/landiss/p/14646051.html