The following describes how to use Navicat to perform mysql command line operations.
Recommended tutorial: MySQL database introductory tutorial
1. Open Navicat
2. Click the [Tools] menu and select [Command Line Interface]
3. At this time, you have entered the mysql command line state
Extended information: MySQL basic operation commands
Database operation
Show all databases
mysql> show databases;(注意:最后有个 s)
Create database
mysql> create database test;
Connect to the database
mysql> use test;
View the currently used database
mysql> select database();
Table information contained in the current database
mysql> show tables; (注意:最后有个 s)
Delete database
##
mysql> drop database test;
Table operation
Note: Use "useCreate table
Command:create table
The above is the detailed content of How to use navicat for mysql command line operations?. For more information, please follow other related articles on the PHP Chinese website!