mysql 命令行
2015-09-22 17:24
621 查看
drop database mustang; create database mustang; show databases; use database mustang; show tables; select * from instance;
查看所有属性
desc instance;
更改一个字段
update instance set is_terminated=1 where name='vm_DEV_000001';
授权 grant 权限1,权限2,…权限n on 数据库名称.表名称 to 用户名@用户地址 identified by ‘连接口令’;
show grants for mustang@'9.123.156.124';
GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \ IDENTIFIED BY 'NEUTRON_DBPASS'; GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \ IDENTIFIED BY 'NEUTRON_DBPASS';
MySQL查询结果重定向到文件中
select col1,col2 into outfile 'c:\t.txt' from tablename
相关文章推荐
- MySQL- 'load data infile'语句
- 【Mysql】 你会用 information_schema吗?
- ubuntu下mysql的环境搭建及使用
- MySQL出现“错误1067:进程意外终止”
- Mysql自带函数
- Infobright on Ubuntu 安装
- mysql 用户管理
- Ecmall MySql 数据库调用教程
- Mysql5.6.26 绿色版安装与配置
- Ubuntu下的Mysql在本机以外的机器无法通过PDO连接
- mysql存储过程的调用方法
- MySQL存储过程详解 mysql 存储过程
- Mysql zip 安装(windows)
- Mysql zip 安装(windows)
- MySql行列转换
- MySQL的备份与还原
- mysql主从复制配置篇
- mysql之event
- MySQL绿色版使用介绍
- MySQL修改root密码的多种方法