linux 下 mysql一些基本操作
2014-04-10 10:18
447 查看
1、显示数据库show databases;2、选择数据库use数据库名;3、显示数据库中的表show tables;4、显示数据表的结构
describe 表名;
5、显示表中记录
SELECT*FROM表名
6、建库create database 库名;
7、建表
linux 开启mysql远程连接的设置步骤
1.mysql> grant all privilegeson *.* to root@localhost identified by(增加root用户授权通过本地(localhost)访问)2.mysql>grant all privilegeson *.* to root@”%” identified by (允许任何主机通过root用户连接mysql数据库(通配符%))
describe 表名;
5、显示表中记录
SELECT*FROM表名
6、建库create database 库名;
7、建表
要是创建表的话; 你的先创建个数据库; CREATE DATABASEabc; use abc; create table abc (id int(3) auto_increment not null primary key);//创建表
linux 开启mysql远程连接的设置步骤
1.mysql> grant all privilegeson *.* to root@localhost identified by(增加root用户授权通过本地(localhost)访问)2.mysql>grant all privilegeson *.* to root@”%” identified by (允许任何主机通过root用户连接mysql数据库(通配符%))
相关文章推荐
- Linux下Mysql的一些基本操作:
- linux下mysql的一些基本操作
- linux下mysql的一些基本操作
- linux 下mysql一些基本操作
- linux下mysql的一些基本操作
- mysql 的配置引用和一些基本操作
- Linux基本操作系列(三):在CentOS 6.8系统上安装MySQL 5.7
- Linux下MySQL的一些基本使用方法
- mysql一些基本操作
- 一些linux的基本操作指令
- MYSQL 的一些基本操作
- Linux下mysql基本操作小结
- linux的一些基本操作
- Linux基本操作系列(三):在CentOS 6.8系统上安装MySQL 5.7
- [Linux & Mysql] Linux下Mysql的基本操作
- LInux MySQL 数据库 的一些操作
- MySQL的一些基本操作
- 使用Python操作MySQL的一些基本方法
- mysql的一些操作(linux+windows)持续更新
- Linux下Mysql基本操作(二)