MySql 常用命令
来源:互联网 发布:淘宝上配眼镜 编辑:程序博客网 时间:2024/06/05 16:34
1.创建数据库
GBK: create database test2 DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci;
UTF8: CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
2.删除数据库
drop database test2
3.导入数据
mysql --default-character-set=utf8 -u root -p test2<test2.sql
4.查看进程:
show processlist;
5.查看相关变量
show variables like '%cache%';
6.查看状态信息
show state like '%cache%';
7.查看及创建索引
create index idx_name on wp_posts(name)
show index from wp_posts;
0 0
- MySQL常用命令
- MySql常用命令
- MySQL常用命令
- mysql常用命令
- mysql常用命令
- mysql常用命令
- Mysql常用命令
- MySQL常用命令
- mysql 常用命令
- MySQL常用命令
- mysql常用命令
- MySql常用命令
- MySQL常用命令
- mysql 常用命令
- mysql常用命令
- mysql常用命令
- mysql 常用命令
- MySQL常用命令
- OVS and SDN-Controller
- 写了个html5播放视频的video控件,只支持mp4和3gp(android和ios默认支持的格式就写了这个)
- 第K小的数 快速排序 选择前K大O(n)
- jquery tmpl.js与 juicer渲染对比
- 腾讯、百度、阿里面试经验
- MySql 常用命令
- Java三大框架:Struts+Hibernate+Spring
- Spark Core源码分析: RDD基础
- Codeforces 412B Network Configuration (排序)
- Ubuntu Sun JDK 8 安装
- elementary os terminal
- 怎样间隔读取?
- 研发Android Framework所需的基础工具和C++基础知识
- Android思维导图