How to judge whether MySQL is installed successfully?
1. Command prompt cmd window verification
-
Open the command prompt with the keyboard win+R and enter cmd.
-
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.
-
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.
-
Enter the status command to view the MySQL version information, indicating that the installation was successful.
Two, MySQL console verification
-
You can find and open the MySQL 5.7 Command Line Client program in the "Start" menu bar.
-
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.
-
Enter a simple command, such as SHOW DATABASES, to display the current database list verification.