mysql不是内部或外部命令,也不是可运行的程序 或批处理文件的其中一个解决方案
发布日期:2022-02-17 02:39:52 浏览次数:25 分类:技术文章

本文共 872 字,大约阅读时间需要 2 分钟。

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 -prootmysql: [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 7Server 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 itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>

转载地址:https://blog.csdn.net/qq_39814938/article/details/106382139 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:MYSQL数据库命令行分号不能结束语句的问题解决办法
下一篇:mysql-增删改查

发表评论

最新留言

做的很好,不错不错
[***.243.131.199]2024年03月31日 14时06分55秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章