当前位置:网站首页>cmd (command line) to operate or connect to the mysql database, and to create databases and tables
cmd (command line) to operate or connect to the mysql database, and to create databases and tables
2022-07-30 21:36:00 【bhegi_seg】
1. Related Instructions
1. Press the windows+R keys on the keyboard to enter cmd, or directly enter cmd in the search box
2. Enter mysql:
Enter mysql -uroot -p at the command line, then enter your mysqlPassword, enter the mysql database after success
3.View databases in mysql
show databases;
4. Use a database
use database name;
The database can only be accessed after we issue the command to use the database
5. View the tables in the database
NoteOnly when we start using this database, we can operate with the database you are using
show tables;
6. View the design structure of the table
describe table name;
or
desc table name;
2. Create a database and its tables
1. First you still need to connect to the database
2.Create database
create database database name;
3.Use database
use database name;
4.Create table
5. Summary
I believe my friends here, and I also know how to insert data to operate the database, I won't go into details here.Thank you for your likes and followings, thank you all!
Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢

史上最全的Redis基础+进阶项目实战总结笔记

DPW-SDNet: Dual Pixel-Wavelet Domain Deep CNNs for Soft Decoding of JPEG-Compressed Images

The mysql time field is set to the current time by default

在IDEA中使用JUnit4和JUnitGenerator V2.0自动生成测试模块

【菜鸡含泪总结】如何用pip、anaconda安装库

Enhancing Quality for HEVC Compressed Videos

面试难题:分布式 Session 实现难点,这篇就够!

解决npm warn config global `--global`, `--local` are deprecated. use `--location=global` instead

kubernetes
![[Limited Time Bonus] 21-Day Learning Challenge - MySQL from entry to mastery](/img/12/f9fe60c7fc3d376aa95a4756541b61.png)
[Limited Time Bonus] 21-Day Learning Challenge - MySQL from entry to mastery
随机推荐
Simple configuration of three-tier architecture
系统结构考点之并行主存
活动推荐 | 2022年深圳最值得参加的边缘计算活动
A simple rich text editor
LeetCode·Daily Question·952. Calculate Maximum Component Size by Common Factor·Union Check
字节对齐之C语言犄角旮旯的知识
How do I refresh the company's background management system (Part 1) - performance optimization
socket: Kernel initialization and detailed process of creating streams (files)
[Machine Learning] The Beauty of Mathematics Behind Gradient Descent
关于SFML Rect.inl文件报错的问题
你需要知道的ES6—ES13开发技巧
1064 Complete Binary Search Tree
MySQL60 homework
基于ABP实现DDD--仓储实践
Automatically generate test modules using JUnit4 and JUnitGenerator V2.0 in IDEA
手把手教你搭建一台永久运行的个人服务器
【网络安全专栏目录】--企鹅专栏导航
3分钟带你了解微信小程序开发
MySQL Soul 16 Questions, How Many Questions Can You Last?
(7/29)基础板子最小生成树prim+kruskal