1. Using Window+r, enter cmd, log in with Mysql-uuser-ppassword ' MySQL ' is not a valid internal command?
A: This is due to the absence of the environment variable path configured for MySQL.
MySQL environment variable Path configuration method: Add the MySQL bin path in path, such as: C:\Program files\mysql\mysql Server 5.5\bin, such as:
2. After the configuration is complete, you can use the DOS command: Mysql-uuser-ppassword to access the MySQL database, such as:
The command box appears stating that MySQL is connected properly.
3. If you do not want someone to know your password when connecting to the database, you can use the command: mysql-uuser-p
4. View MySQL version number dos command, MySQL--version or mysql-v
SQL query can also be used after entering MySQL database, i.e.: Select version (); (note that the SQL statement uses the ";" To end)
Third, MySQL login detailed and version number query