windows 8 系统将mysql加入环境变量

2025-05-21 13:37:50

1、运行mysql数据库,打开windows8中的cmd,输入mysql -h localhost -u root -p,假如显示下图所示,证明环境变量中没有加入mysql

windows 8 系统将mysql加入环境变量

2、找到mysql.exe安装路径,复制之(以本人电脑为例),通常情况下mysql.exe都存放在mysql/bin/目录下。

windows 8 系统将mysql加入环境变量

3、找到windows8中“环境变量”所在位置,在系统变量中寻找“path”,单击编辑按钮

windows 8 系统将mysql加入环境变量
windows 8 系统将mysql加入环境变量

4、将mysql.exe的路径复制到“变量值”内容框中,注意需要“;D:\web\mysql\bin”中最前面需要加“分号”,然后一路确定。

windows 8 系统将mysql加入环境变量
windows 8 系统将mysql加入环境变量

5、重启mysql,重复步骤1,观察变化,可以发现能够操作数据库了

windows 8 系统将mysql加入环境变量
windows 8 系统将mysql加入环境变量
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢