当前位置:网站首页>Use of MySQL command line client and common commands
Use of MySQL command line client and common commands
2022-04-23 02:57:00 【Senior agent of Sarkozy】
Mysql Command Line Client It's an official client . I've been using it directly before Windows In the command prompt window, enter Mysql sentence , There seems to be no difference . But I reinstalled one and tried it .
install
MYSQL The folder comes with Installer, Select the corresponding computer version Mysql Server Download it .
To configure
Due to the installation directory and Mysql atypism , Missing configuration file my.ini Lead to Mysql Command Line Client Can't use at first . Put... Directly Mysql Inside my.ini Copied to the Mysql Server It's just in the directory .
Common commands
Actually in cmd Log in... In the window mysql The corresponding command prompt will also be given , But I didn't study it carefully at that time . Just borrow Mysql Command Line Client Take a chance to learn about common commands .
There are two different... In the start menu Mysql Command Line Client window , One of them supports Unicode , One does not support . After opening, you will be prompted to enter the login password , Log in and cmd The operations in the window are basically the same .
| command | effect |
|---|---|
| \h, ?, ? | get help |
| \c | Clear the previous input ( Use when the content is input incorrectly ) |
| \R | modify The prompt style on the left before each command input ( Default :‘mysql>’) |
| ? Commands that need help ; | Displays help for this command ( Such as :? show) |
| show databases; | View all databases |
| use ‘ Database name ’; | Select a database |
| ( After selecting a database )show tables; | View all tables in the current database |
| exit / quit | sign out |
版权声明
本文为[Senior agent of Sarkozy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220647385118.html
边栏推荐
- MySQL function syntax
- Wepy learning record
- ROP Emporium x86_64 7~8题
- MySQL / SQL Server判断表或临时表存在则删除
- Android high-level interview must ask: overall business and project architecture design and reconstruction
- L2-006 樹的遍曆(中後序確定二叉樹&層序遍曆)
- B blocks of the 46th ICPC Asian regional competition (Kunming)
- 【Hcip】OSPF常用的6种LSA详解
- Restart redis
- Plug in for vscode
猜你喜欢

L2-006 树的遍历(中后序确定二叉树&层序遍历)

Android high-level interview must ask: overall business and project architecture design and reconstruction

LeetCode 1450 - 1453

Android 高阶面试必问:全局业务和项目的架构设计与重构

Kubernetes study notes

Linux Redis——Redis 数据库缓存服务
![[wechat applet] set the bottom menu (tabbar) for the applet](/img/e2/98711dfb1350599cbdbdf13508b84f.png)
[wechat applet] set the bottom menu (tabbar) for the applet

JS learning notes

Plug in for vscode

Leangoo brain map - shared multi person collaborative mind mapping tool
随机推荐
php+mysql對下拉框搜索的內容修改
Airtrack cracking wireless network password (Dictionary running method)
JS using the parameters of art template
First knowledge of C language ~ branch statements
AC & A2C & A3C
When using art template inheritance, compileerror: invalid or unexpected token generated
Shell learning notes -- shell processing of output stream awk
tf. keras. layers. Timedistributed function
Linux redis - redis database caching service
Step principle of logical regression in machine learning
B blocks of the 46th ICPC Asian regional competition (Kunming)
JDBC JDBC
tf. keras. layers. MaxPooling? D function
Niuke white moon race 6 [solution]
第46届ICPC亚洲区域赛(昆明) B Blocks(容斥+子集和DP+期望DP)
Encapsulation of ele table
Microservices (distributed architecture)
Shell script learning notes -- shell operation on files sed
[hcip] detailed explanation of six LSAS commonly used by OSPF
MySQL complex query uses temporary table / with as (similar to table variable)