mysql
想用cmd 打开mysql但是一直显示
'mysql' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
怎么处理呢
首先先看自己环境变量弄好没有
右击我的电脑——>属性——>高级系统设置——>环境变量——>系统变量——>Path里添加";C:\Program Files\MySQL\MySQL Server 5.7\bin"
但是我这样弄了还不行 最后还要用管理员身份打开mysql
在启动菜单的搜索栏输入cmd,出现选项后右击,选择以管理员身份运行
这样就行了
Microsoft Windows [版本 10.0.17763.1217]
(c) 2018 Microsoft Corporation。保留所有权利。
C:\windows\system32>mysql -uroot -proot
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.7.16-log MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>