当前位置:网站首页>linux下新建Mysql数据库并导入sql文件
linux下新建Mysql数据库并导入sql文件
2022-06-30 15:33:00 【多汁多味】
0. 登录mysql
mysql -u root -p
1. 查看当前数据库
show databases; 
2. 新建mission数据库
create database mission; 
3. 查看是否新建成功
show databases; 
4. 切换到mission数据库
use mission;
5. 然后执行:其中/home/sql_file/mission.sql是我们要导入的对应的sql文件
source /home/sql_file/mission.sql 
6. 查看导入成功的表
show tables;

7. 查看表结构
desc mission;
边栏推荐
- The difference between queue and stack
- 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!
- FoxPro and I
- Don't fight for big companies
- Soap comparison result file description
- Mysql database - create user name & modify permission
- 1025 pat ranking (25 points)
- Matlab to find prime pairs within 100
- How many questions can you answer for the interview of Mechanical Engineer?
- How should we understand the variability of architecture design?
猜你喜欢

FoxPro and I

Rte2021 review of the practice and the way of AI OPS landing

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

Chapter 2 installation and use of vscode editor

Technology sharing | anyrtc service single port design

Technology sharing | how to quickly realize audio and video online calls

Industry analysis | the future of real-time audio and video

Basic literacy - four common software architectures

Mysql database - create user name & modify permission

How should we understand the variability of architecture design?
随机推荐
O - ACM contest and blackout (minimum spanning tree, Kruskal)
1077 kuchiguse (20 points)
Matlab judges the number of same purchases
1137: encrypted medical record
NPM install --global --save --save dev differences
4.5 integer
Single cycle CPU of the design group of West University of Technology
Explain service idempotency design in detail
1076 forwards on Weibo (30 points)
这种零件该怎么编程加工?
Matlab finds a prime number that is greater than a given integer and follows this integer
Introduction to using 51 single chip microcomputer to control steering gear
Bucket sorting (C language)
Shift operator (detailed)
C. Registration system(map)
Matlab to find prime pairs within 100
J - Borg maze (minimum spanning tree +bfs)
[ten thousand words long article] thoroughly understand load balancing
Help you accumulate audio and video knowledge, Agora developer's roaming guide officially set sail
Industry analysis | the future of real-time audio and video