当前位置:网站首页>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;
边栏推荐
- [sub matrix quantity statistics] cf1181c flag sub matrix quantity statistics
- Advanced functions of ES6 operation array map (), filter (), reduce()
- [matlab] 2D drawing summary
- Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure
- 4.1 print function
- 001 data type [basic]
- 4.4 string
- return statement
- N - Is There A Second Way Left? (minimum spanning tree, Kruskal)
- RTC monthly tabloid programming challenge ended successfully in June; Review of the first anniversary of sound network's listing
猜你喜欢

map reduce案例超详细讲解
![[leetcode] linked list sorting (gradually increasing the space-time complexity)](/img/0e/b8d0305babb42b6fab85b45c47d705.png)
[leetcode] linked list sorting (gradually increasing the space-time complexity)

Start your global dynamic acceleration journey of Web services in three steps

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

阿里云oss对象存储跨域设置

【子矩阵数量统计】CF1181C Flag子矩阵数量统计

【Leetcode】链表排序(逐步提高时空复杂度)

How to do a good job in high concurrency system design? I have summarized three points

消息队列十连问

topic: Privacy, Deception and Device Abuse
随机推荐
1150 traveling salesman problem (25 points)
About pickle module - 6 points that beginners must know
Policy Center > Malware > Malware
《你的灯亮着吗》开始解决问题前,得先知道“真问题”是什么
C. Registration system(map)
from Crypto. Cipher import AES could not find the solution record with module error
Start your global dynamic acceleration journey of Web services in three steps
Kubernetes: a comprehensive analysis of container choreography
Chapter III installation and use of jupyter
linux下新建Mysql数据库并导入sql文件
Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)
Some reference routines for cache update
Advanced functions of ES6 operation array map (), filter (), reduce()
Imitating freecodecamp to build a programming ability test platform
Anyrtc implements application scenarios based on webrtc
国债逆回购在哪个平台上买比较安全?
1062 talent and virtue (25 points)
1148 werewolf - Simple Version (20 points)
Summary of gradient descent optimizer (rmsprop, momentum, Adam)
C language \t usage