Getting started with MySQL

Using MySQL from within the command prompt

Once MySQL is installed, you can simply try to use it.

Open: command prompt program, enter: mysql -uroot -p, then press Enter and enter the password to enter the command line environment

 

 In the MySQL command line environment, you can pass:

  • show databases; see which databases are available
  • use database name use a database
  • show tables View which tables are in the database
  • exit Exit basic commands such as the MySQL command line environment.

These commands are the SQL language we will learn later.

Use graphical tools to operate MySQL

It is not very convenient to use the command prompt to operate MySQL. Generally, developers will use third-party graphical tools to use it. There are many graphical tools available for MySQL, and the course uses a cross-platform, open source, free graphical tool: DBeaver

Download address: https://dbeaver.io/download We choose the free community version (DBeaver Community)

Select the installation package suitable for your computer system to download.

 DBeaver installation

The installation is very simple, open the installation package, select Chinese, double-click all the way to the next step:

 DBeaver connects to MySQL

Open DBeaver software

 

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/qq1226546902/article/details/131983335