Home  >  Article  >  Database  >  Windows下通过DOS命令登录MYSQL的方法_MySQL

Windows下通过DOS命令登录MYSQL的方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:00:25804browse

例:MYSQL安装在 D:\ApacheServer\mysql 下
开始==>运行==>cmd,或者 按住win键+r键输入cmd

代码如下:


C:\Users\Administrator>d:      //进入D盘
D:\>cd ApacheServer\mysql\bin  //进入mysql安装目录下bin文件夹内
D:\ApacheServer\mysql\bin>mysql -h localhost -uroot -p    //进入mysql命令,随后按提示输入root用户密码,输入回车即可,也可使用其他用户,退出输入exit回车

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn