当前位置:网站首页>MySQL summary
MySQL summary
2022-06-13 07:50:00 【@Within】
1、 Sign in :mysql -h Host name -P Port number -u user name -p password
2、 Leave :exit perhaps quit
3、 Create database :create database Database name ;
4、 Using a database :use Database name ;
5、show tables; # It is required to have use sentence
show tables from Database name ;
6、 Create table :create table The name of the table (
Field name data type ,
Field name data type
);
7、 see :select * from Database table name ;
8、 add to :insert into The name of the table values( value , list );
9、 View the table creation information : show create table The name of the table \G
10、 Delete table : drop table The name of the table ;
11、 Delete database :drop database Database name ;
12、 Check the code command :
show variables like 'character_%';
show variables like 'collation_%';
13、# modify 'root'@'localhost' User's password rules and passwords
USE mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'abc123';
FLUSH PRIVILEGES;
14、 modify the database / Table character code is UTF8
alter database 0728db charset utf8
alter table student charset utf8;
15、 modify my.ini
[mysql] # In about 63 Row or so , Add under
...
default-character-set=utf8 # Default character set
[mysqld] # In about 76 Row or so , Add under
...
character-set-server=utf8
collation-server=utf8_general_ci
16、 Import sql file :
source d:\mysqldb.sql
边栏推荐
- Awk use
- Hashtable source code analysis
- 24 | 冒险和预测(三):CPU里的“线程池”
- 安装CUDA+CUSP环境,并创建第一个HelloWord入门工程
- Get properties of class
- [Yu Yue education] econometrics reference materials of Jiujiang University
- Selenium foundation API
- 【PYTORCH】Expected object of type torch. xxxTensor but found type torch. cuda. xxxTensor(torch0.4.0)
- 2021-10-20
- 26 | Superscalar和VLIW:如何让CPU的吞吐率超过1
猜你喜欢
【clickhouse专栏】基础数据类型说明
Classification of databases
Upgrade the project of log4j to log4j2
26 | superscalar and VLIW: how to make the CPU throughput exceed 1
Redis underlying data structure ----quicklist
Openharmony notes ----------- (I)
Redis cluster parsing docker building redis cluster
22 | 冒险和预测(一):hazard是“危”也是“机”
Clickhouse column basic data type description
A troubleshooting process for database timeout caused by SQL misguided
随机推荐
[log4j2 log framework] modify dump log file permissions
疫情之下的远程办公解决方案
TCP协议的三次握手过程和四次挥手过程以及为什么要这样? ------一二熊猫
17 | establish data path (upper): instruction + operation =cpu
[log framework] add user-defined parameters to the MDC implementation log
Nodejs file module FS
Index push down (ICP) for mysql5.6
2022起重机械指挥考试题模拟考试题库及在线模拟考试
Paper notes: multi label learning bp-mll
免费文件服务器储存技术
AQS - detailed explanation of reentrantlock source code
Pdf to word
Data disorder occurs when the n-th row of the subcomponent list generated by V-for is deleted
在排序数组中查找元素的第一个和最后一个位置
Simple use of logs
Wechat applet - positioning, map display, route planning and navigation
17 | 建立数据通路(上):指令+运算=CPU
【PYTORCH】RuntimeError: one of the variables needed for gradient computation has been
2021-10-08
平衡二叉树学习笔记------一二熊猫