Home > Database > Mysql Tutorial > How to view mysql using cmd

How to view mysql using cmd

藏色散人
Release: 2020-10-29 16:51:14
Original
10848 people have browsed it

cmd method to view mysql: first enter the database through cmd; then execute the command "show databases;" to display all databases; then select the database through the command "use xxx;"; finally execute the command "select * from tbl_dept;"Display table data.

How to view mysql using cmd

Recommendation: "mysql video tutorial"

1. cmd to enter the database, mysql -u root -p Press Enter and enter the password;

##2. Display all databases. show databases;


3. Select the database, use xxx;



4 . Display table. show tables;



5 . Direct query statement to display table data. select * from tbl_dept;


============================ Gorgeous dividing line ===========================

The above is the detailed content of How to view mysql using cmd. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template