如何用cmd命令进入mysql
- 按win+r,打开cmd进入命令行;
- 输入mysql -u root -p并回车,输入密码;
注意:对于password选项,此选项是可选的;
如果你明确指定了-p或者–password的值,那么-p或者–password和密码值之间是不能有空格的。
如果你使用了-p或者–password选项但是没有给出password值,客户端程序提示您输入密码。
For mysql, the first nonoption argument is taken as the name of the default database. If there is no such option, mysql does not select a default database.
对于MySQL,第一个非选项参数被当作默认数据库的名称。如果没有这样的选项,MySQL就不会选择默认数据库。 - 出现该窗口说明登录成功
如果刚下载了mysql还未进行配置的,
请参考该博主:https://www.cnblogs.com/winton-nfs/p/11524007.html
十分详细