windows启动mysql

启动服务

net start mysql57

停止服务

net stop musql57

运行->

net start mysql57

命令行进入:

C:\Program Files\MySQL\MySQL Server 5.7\bin>
然后输入:mysql -hlocalhost -uroot -p
其中-h表示服务器名,localhost表示本地;-u为数据库用户名,root是mysql默认用户名;-p为密码,如果设置了密码,可直接在-p后链接输入

如果要退出mysql数据库

输入exit;回车

猜你喜欢

转载自blog.csdn.net/sinat_33408089/article/details/79721198