当前位置:网站首页>Use of command line client
Use of command line client
2022-07-16 05:19:00 【Pony_ eighteen】
Catalog
Connect server
Another way , open cmd Program , Enter into mysql Installation directory bin Under the table of contents
1、 Get into mysql Of bin Catalog
cd C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin
2、 Connect mysql
mysql -uroot -p

database
- View all databases
show databases;
- Using a database
use Database name ;
- View currently used databases
select database();
- Create database
create database Database name charset=utf8;
example :
create database test charset=utf8;
- Delete database
drop database Database name ;
example :
drop database ceshi;
Data sheet
- View all tables in the current database
show tables;
- View table structure
desc Table name ;
View the creation statement of the table
show create table Table name ;
example :
show create table students;
Backup
Run as administrator cmd Program

- function mysqldump command
cd C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin
mysqldump –uroot –p Database name > c:\ceshi.sql # Save to the specified directory
# Press the prompt to enter mysql Password
recovery ( hold sql File import back to database )
- First, create the corresponding database in the graphical interface
mysql -uroot –p New database name < ceshi.sql
# Enter... At the prompt mysql password
边栏推荐
猜你喜欢

Ardunio -- interaction between touch sensor and light -- judge whether the light is on according to the touch screen

视频孪生:智慧园区信息化升级的抓手

c语言基础篇:扫雷

Detailed explanation of C language custom types - structure, enumeration, union

Implementation of drop-down box function in SSM project
![[underlying principle] what is a socket? Why is the network inseparable from socket?](/img/cb/2a57657992a8a9addb29f7fb1e9cbb.png)
[underlying principle] what is a socket? Why is the network inseparable from socket?

一种可灰度的接口迁移方案

数组变化,但是无法更新视图(原因和思考)

“偷师”大厂:可以参考的七种产品开发策略

C language comprehensive training - address book (using dynamic memory)
随机推荐
ObjectARX select entities to create block references
What if the system always fails? Maybe you should learn about stability construction
学长讲解 - FPGA与单片机的区别 【毕设基础概念】
Knowledge points of driving license subject
看看谷歌如何在目标检测任务使用预训练权值 | CVPR 2022
XML介绍
抓包工具之fiddler的安装使用
Ardunio -- interaction between touch sensor and light -- judge whether the light is on according to the touch screen
ssm项目中下拉框功能的实现
Changement de style TW du script singe huileux
Teacher Wan Jianfeng dry goods sharing July 13, 2022
rogerbot 爬虫介绍
Register the implementation.
万建峰老师 干货分享2022年7月13日
PyTorch - Dropout: A Simple Way to Prevent Neural Networks from Overfitting
Introduction to C language compiler
Flink CDC + oceanbase full incremental integrated data integration scheme
Array changes, but the view cannot be updated (reason and thinking)
At 19:00 p.m. on Thursday, the third live broadcast of knowledge empowerment - control panel function realization of openharmony smart home project
sql_server2014下载与安装