问题描述 : 阿里云centos安装mysql5.6出现下面错误,有没有可提供解决参考方案
请教社区的大神
[admin@izbp12hx8zhd9bnyuhqumez mysql]$ sudo bin/mysqld --initialize --user=mysql
2018-10-12 19:16:48 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-10-12 19:16:48 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-10-12 19:16:48 0 [Note] bin/mysqld (mysqld 5.6.41) starting as process 371 ...
2018-10-12 19:16:48 371 [Warning] Can't create test file /var/lib/mysql/izbp12hx8zhd9bnyuhqumez.lower-test
2018-10-12 19:16:48 371 [Warning] Can't create test file /var/lib/mysql/izbp12hx8zhd9bnyuhqumez.lower-test
bin/mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2 - No such file or directory)
2018-10-12 19:16:48 371 [ERROR] Aborting
2018-10-12 19:16:48 371 [Note] Binlog end
2018-10-12 19:16:48 371 [Note] bin/mysqld: Shutdown complete
2018-10-12 19:33:50
登录的账户对文件的读写权限不够,可以尝试用root用户安装,或者给admin更多的权限。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。