当前位置:网站首页>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
边栏推荐
- 手把手教你搭建一台永久运行的个人服务器
- 用于视频压缩伪影消除的深度卡尔曼滤波网络
- Deep Non-Local Kalman Network for VideoCompression Artifact Reduction
- cmd(命令行)操作或连接mysql数据库,以及创建数据库与表
- 数据质量提升
- IDEA2018.3.5 cancel double-click Shift shortcut
- 关于MySQL主从复制的数据同步延迟问题
- LeetCode·每日一题·952.按公因数计算最大组件大小·并查集
- LeetCode·23.合并K个升序链表·递归·迭代
- y82.第四章 Prometheus大厂监控体系及实战 -- 监控扩展和prometheus 联邦(十三)
猜你喜欢
随机推荐
MySQL 8.0.29 解压版安装教程(亲测有效)
MySQL分页查询的5种方法
面试难题:分布式 Session 实现难点,这篇就够!
cmd(命令行)操作或连接mysql数据库,以及创建数据库与表
MySQL删除表数据 MySQL清空表命令 3种方法
mysql死锁
MySql 5.7.38下载安装教程 ,并实现在Navicat操作MySql
ML.NET相关资源整理
MySQL60 homework
Detailed explanation of the delete problem of ClickHouse delete data
Google Earth Engine ——快速实现MODIS影像NDVI动画的在线加载并导出
JS中获取元素属性的8大方法
Google Earth Engine ——ee.List.sequence函数的使用
大家都在用的plm项目管理软件有哪些
tcp协议传输中的粘包问题
CISP-PTE真题演示
Day 16 of HCIP
JDBC(详解)
JUC原子类详解
GPGGA NTRIP RTCM Notes









