Two verification methods to determine whether the MySQL installation is successful

How to judge whether MySQL is installed successfully?

1. Command prompt cmd window verification

  1. Open the command prompt with the keyboard win+R and enter cmd.

  2. Find the bin file directory of the installed MySQL on your computer. This is my installation directory C:\Program Files\MySQL\MySQL Server 5.7\bin.
    Insert picture description here

  3. Enter cd C:\Program Files\MySQL\MySQL Server 5.7\bin in the command prompt, then enter mysql -h localhost -u root -p to log in to the database, and then enter the database password to view the information.
    Insert picture description here

  4. Enter the status command to view the MySQL version information, indicating that the installation was successful.
    Insert picture description here

Two, MySQL console verification

  1. You can find and open the MySQL 5.7 Command Line Client program in the "Start" menu bar.
    Insert picture description here

  2. After entering the database password, press Enter, and the current MySQL server status will pop up. The current version of MySQL server is 5.7.17-log MySQL Community Server (GPL), indicating that MySQL has been installed successfully.
    Insert picture description here

  3. Enter a simple command, such as SHOW DATABASES, to display the current database list verification.
    Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42405619/article/details/108761218