当前位置:网站首页>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 quit3、 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边栏推荐
- uniapp 小程序根据权限动态生成 tabbar
- 【PYTORCH】Expected object of type torch. xxxTensor but found type torch. cuda. xxxTensor(torch0.4.0)
- Leetcode 163 Missing interval (June 12, 2022)
- Nodejs file module FS
- 2022年电工(初级)考题及模拟考试
- [splashsplash] repeat the script that outputs splashsurf
- Three handshakes and four waves of TCP protocol and why------ One two pandas
- Compare advantages and disadvantages of DFS and BFS and name vocabulary
- Redis master-slave replication - underlying principle
- Redis' underlying data structure -- SDS
猜你喜欢
![[log4j2 log framework] sensitive character filtering](/img/a3/09f00bd8d3dd87c54c3191ab907aca.jpg)
[log4j2 log framework] sensitive character filtering

18 | establish data path (middle): instruction + operation =cpu
![[problem record] taberror: inconsistent use of tabs and spaces in indentation](/img/dd/5ba456ac4201c8330d16f4b3bed81d.jpg)
[problem record] taberror: inconsistent use of tabs and spaces in indentation

Upgrade the project of log4j to log4j2

18 | 建立数据通路(中):指令+运算=CPU

19 | 建立数据通路(下):指令+运算=CPU

Redis underlying data structure - underlying principle of hash table

Redis master-slave replication - the underlying principle of partial resynchronization

在排序数组中查找元素的第一个和最后一个位置

Redis learning journey -- subscription and publishing
随机推荐
2022年危险化学品经营单位安全管理人员特种作业证考试题库及模拟考试
Export chrome plug-ins and import local plug-ins to chrome
JMeter UDP pressure measurement
Redis Cluster - the bottom principle of building clusters
IIS中的网站访问excel
Redis master-slave replication - mentality detection mechanism
【clickhouse专栏】基础数据类型说明
2022年电工(初级)考题及模拟考试
MySQL table partitioning
uniapp 小程序根据权限动态生成 tabbar
26 | Superscalar和VLIW:如何让CPU的吞吐率超过1
How idea breaks point debugging
Considerations for using redis transactions
QT reading SQLSERVER database
Redis underlying data structure - underlying principle of hash table
v-for生成的子组件列表删除第n行出现数据错乱问题
Database outline
2022 electrician (elementary) examination questions and simulation examination
[log4j2 log framework] sensitive character filtering
MySQL table cache most detailed notes