1. 按win+r,打开cmd进入命令行;
  2. 输入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就不会选择默认数据库。
  3. 出现该窗口说明登录成功

如何用cmd命令进入mysql
如果刚下载了mysql还未进行配置的,
请参考该博主:https://www.cnblogs.com/winton-nfs/p/11524007.html
十分详细

相关文章:

  • 2021-11-15
  • 2022-01-07
  • 2021-05-25
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
  • 2022-01-07
猜你喜欢
  • 2021-04-09
  • 2021-07-25
  • 2022-02-08
  • 2022-02-08
  • 2021-08-26
  • 2021-06-15
  • 2021-12-03
相关资源
相似解决方案