mysql 安装出错,提示“mysqld: Can't change dir to 'D:\MySQL\MySQL Server 5.7\data\'”
2018-02-11 17:34
881 查看
https://www.mysql.com/downloads/ 下载 mysql-installer-community-5.7.21.0.msi 时,报错:mysqld: Can't change dir to 'D:\MySQL\MySQL Server 5.7\data\' (Errcode: 2 - No s
uch file or directory)
2018-02-11T09:25:20.258000Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2018-02-11T09:25:20.258000Z 0 [Note] --secure-file-priv is set to NULL. Operatio
ns related to importing and exporting data are disabled
2018-02-11T09:25:20.258000Z 0 [Note] D:\MySQL\MySQL Server 5.7\bin\mysqld.exe (m
ysqld 5.7.20) starting as process 128288 ...
2018-02-11T09:25:20.261000Z 0 [Warning] Can't create test file D:\MySQL\MySQL Se
rver 5.7\data\PC-201709071138.lower-test
2018-02-11T09:25:20.262000Z 0 [Warning] Can't create test file D:\MySQL\MySQL Se
rver 5.7\data\PC-201709071138.lower-test
2018-02-11T09:25:20.262000Z 0 [ERROR] failed to set datadir to D:\MySQL\MySQL Se
rver 5.7\data\
2018-02-11T09:25:20.262000Z 0 [ERROR] Aborting
2018-02-11T09:25:20.262000Z 0 [Note] Binlog end
2018-02-11T09:25:20.263000Z 0 [Note] D:\MySQL\MySQL Server 5.7\bin\mysqld.exe: S
hutdown complete
解决办法, 看 log 是mysql安装路径缺少了 \data\ 文件夹,手动进入安装目录发现果然没有!!!!
于是乎自己创建了一个 D:\MySQL\MySQL Server 5.7\data,然后在尝试 cmd :
mysqld.exe --console激动人性的时刻到了:
到此,证明 mysql 安装成功了,不要谢我~
uch file or directory)
2018-02-11T09:25:20.258000Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2018-02-11T09:25:20.258000Z 0 [Note] --secure-file-priv is set to NULL. Operatio
ns related to importing and exporting data are disabled
2018-02-11T09:25:20.258000Z 0 [Note] D:\MySQL\MySQL Server 5.7\bin\mysqld.exe (m
ysqld 5.7.20) starting as process 128288 ...
2018-02-11T09:25:20.261000Z 0 [Warning] Can't create test file D:\MySQL\MySQL Se
rver 5.7\data\PC-201709071138.lower-test
2018-02-11T09:25:20.262000Z 0 [Warning] Can't create test file D:\MySQL\MySQL Se
rver 5.7\data\PC-201709071138.lower-test
2018-02-11T09:25:20.262000Z 0 [ERROR] failed to set datadir to D:\MySQL\MySQL Se
rver 5.7\data\
2018-02-11T09:25:20.262000Z 0 [ERROR] Aborting
2018-02-11T09:25:20.262000Z 0 [Note] Binlog end
2018-02-11T09:25:20.263000Z 0 [Note] D:\MySQL\MySQL Server 5.7\bin\mysqld.exe: S
hutdown complete
解决办法, 看 log 是mysql安装路径缺少了 \data\ 文件夹,手动进入安装目录发现果然没有!!!!
于是乎自己创建了一个 D:\MySQL\MySQL Server 5.7\data,然后在尝试 cmd :
mysqld.exe --console激动人性的时刻到了:
到此,证明 mysql 安装成功了,不要谢我~
相关文章推荐
- Ubuntu14.04 安装MySQL 及Can‘t connect to local MYSQL server through socket ’/var/run/mysqld/mysqld.sock‘ (2)
- mysql 5.7.18 Can't change dir to引发的一系列问题(初始化data、改root密码)
- CentOS yum安装mysql后 Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’
- 重新安装mysql 出现问题 can't connect to mysql server on 'localhost'的解决办法
- 新安装的MySQL的root用户没有密码,但是出现ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/va
- mysql启动时提示 can't create/write to file 'D:\mysql\data\prn.pid'
- CentOS yum安装mysql后 Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’
- 连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
- centos7 安装mysql 报错:亲测有效,解决Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2)
- 连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
- Ubuntu14连接MySql报错“can't connect to local mysql server through socket '/var/run/mysqld/mysqld.sock'”
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
- CentOS下安装mysql和解决ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/my
- 解决PHPCMS 安装问题 Can not connect to MySQL server
- 关于 Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock的问题
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
- Linux下安装mysql5.7缺少my-default.cnf文件及Can't connect to local MySQL server 解决方案
- 【0013】navicat连接mysql出现提示,2003 - Can‘t connect to MySQL server on 'localhost'(10038)
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
- windows安装mysql的坑:ERROR 2003 (HY000): Can’t connect to MySQL server on ‘localhost’ (10061)