当前位置:网站首页>Create a new MySQL database under Linux and import SQL files
Create a new MySQL database under Linux and import SQL files
2022-06-30 15:39:00 【Juicy and tasty】
0. Sign in mysql
mysql -u root -p
1. View the current database
show databases; 
2. newly build mission database
create database mission; 
3. Check to see if the creation is successful
show databases; 
4. Switch to mission database
use mission;
5. And then execute : among /home/sql_file/mission.sql Is the corresponding sql file
source /home/sql_file/mission.sql 
6. View successfully imported tables
show tables;

7. View table structure
desc mission;
边栏推荐
- Advanced C language - pointer 3 - knowledge points sorting
- M - smooth engineering continuation (minimum spanning tree)
- Matlab judge palindrome number (only numbers)
- Curl: (23) failed writing body (1354 i= 1371) problem solving method
- Mysql database - create user name & modify permission
- Chapter 2 installation and use of vscode editor
- Technology sharing | how to quickly realize audio and video online calls
- 容器常用命令
- Flask Sqlalchemy - how to use custom query criteria ---orm (7)
- linux下修改mysql密码: ERROR 1396 (HY000): Operation ALTER USER failed for ‘root‘@‘localhost‘
猜你喜欢
![[leetcode] linked list sorting (gradually increasing the space-time complexity)](/img/0e/b8d0305babb42b6fab85b45c47d705.png)
[leetcode] linked list sorting (gradually increasing the space-time complexity)

Advanced C language - pointer 3 - knowledge points sorting

linux下修改mysql密码: ERROR 1396 (HY000): Operation ALTER USER failed for ‘root‘@‘localhost‘

各省GDP可视化案列,附带csv Metabase处理

Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)

Complement (Niuke)

The short video and live broadcast incubation training camp with goods opens nationwide enrollment!

Three types of technical debt that programmers often encounter: code, data, and architecture

The sound network has fully opened the real-time transmission network sd-rtn, which has been free of network wide accidents for seven years - this is FPA!

Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure
随机推荐
1066 root of AVL tree (25 points)
Rte2021 review of the practice and the way of AI OPS landing
O - ACM contest and blackout (minimum spanning tree, Kruskal)
Kubernetes: a comprehensive analysis of container choreography
How does sd-rtn ensure the high availability of RTE services after infrastructure failure
Three types of technical debt that programmers often encounter: code, data, and architecture
It's so brain - burning that no wonder programmers lose their hair
Policy Center > Malware > Malware
About pickle module - 6 points that beginners must know
How to get palindrome number in MATLAB (using fliplr function)
FoxPro and I
Jupyter notebook basic knowledge learning
4.12 input() input function and comments
Advanced C language - pointer 3 - knowledge points sorting
Infrastructure is code. What are you talking about?
1107 social clusters (30 points)
4.1 print function
4.4 string
4.8 data type conversion
Is Domain Driven Design (DDD) reliable?