How to open mysql using the command line: 1. Enter the bin directory of mysql and enter [mysql -u USERNAME -pPASSWORD]; 2. If the path during mysql installation is on the C drive, enter the command [mysql -h localhost -u】.
【Related learning recommendations: mysql tutorial】
How to open mysql with the command line:
If the path when mysql is installed is not on the C drive, you should enter the bin directory of mysql, and then enter
“mysql -u USERNAME -pPASSWORD ”
If the path when installing mysql is on the C drive, directly enter
“mysql -h localhost -u USERNAME -pPASSWORD ”
in the command prompt: Related learning recommendations: Programming video
The above is the detailed content of How to open mysql using command line. For more information, please follow other related articles on the PHP Chinese website!