mysql客户端命令行的使用_MySQL
Jun 01, 2016 pm 01:06 PM
上下键可以重复上面的命令行
show databases; 显示数据库(不要忘记分号)
create database test; 创建test数据库(默认charset是utf8)
create database test charset-gbk; 创建test数据库charset是gbk
drop database test; 删除test数据库
use test; 选择使用test数据库
show tables; 显示选中数据库中的表
charset GBK或utf8 改变字符集
可以直接写SQL语句来创建表
show create table users; 可以查看users表的结构和数据库引擎engine(我的是InnoDB)和字符集charset=utf8;
load data local infile 'D://data//country.txt' into table country(表名) fields terminated by '/t';向表 中插入txt文件中的数据

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Reduce the use of MySQL memory in Docker

How do you alter a table in MySQL using the ALTER TABLE statement?

How to solve the problem of mysql cannot open shared library

What is SQLite? Comprehensive overview

Run MySQl in Linux (with/without podman container with phpmyadmin)

Running multiple MySQL versions on MacOS: A step-by-step guide

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)?

How do I secure MySQL against common vulnerabilities (SQL injection, brute-force attacks)?
