mysql安装的问题

D:\tool\mysql\bin>mysqld --initialize
181123 16:34:23 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
181123 16:34:23 [Note] mysqld (mysqld 5.5.62) starting as process 5464 ...
181123 16:34:23 [ERROR] Can't find messagefile 'D:\tool\mysql\bin\share\errmsg.sys'
181123 16:34:23 [Warning] Can't create test file D:\tool\mysql\bin\data\Dude啊.lower-test
181123 16:34:23 [Warning] Can't create test file D:\tool\mysql\bin\data\Dude啊.lower-test
mysqld: Can't change dir to 'D:\tool\mysql\bin\data\' (Errcode: 2)
181123 16:34:23 [ERROR] Aborting

181123 16:34:23 [ERROR] Can't find messagefile 'D:\tool\mysql\bin\share\errmsg.sys'
181123 16:34:23 [Warning] Can't create test file D:\tool\mysql\bin\data\Dude啊.lower-test
181123 16:34:23 [Warning] Can't create test file D:\tool\mysql\bin\data\Dude啊.lower-test
mysqld: Can't change dir to 'D:\tool\mysql\bin\data\' (Errcode: 2)

都是mysql目录下my.ini文件内路径设置问题,本来没有my.ini文件,自己建一个,内容是copy来的,里面的

#Path to installation directory. All paths are usually resolved relative to this.
basedir="D:\\tool\\mysql"

#Path to the database root
datadir="D:\\tool\\mysql\\data"

都应该是mysql所安装对应的路径,data文件也是自己新建的?如果没有data文件可以把my.ini文件里面的

datadir="D:\\tool\\mysql\\data"

注释掉

参考:

https://www.cnblogs.com/cnhkzyy/p/9030744.html

https://blog.csdn.net/yulutian/article/details/78971369

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值