docker cento基础镜像 yum安装的mysql 启动问题


[root@e995b6d81559 lib]# /usr/sbin/mysqld
2018-10-16 07:59:41 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-10-16 07:59:41 0 [Note] /usr/sbin/mysqld (mysqld 5.6.41) starting as process 124 ...
2018-10-16 07:59:41 124 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2018-10-16 07:59:41 124 [ERROR] Aborting

2018-10-16 07:59:41 124 [Note] Binlog end
2018-10-16 07:59:41 124 [Note] /usr/sbin/mysqld: Shutdown complete



[root@e995b6d81559 lib]# chmod +x /usr/lib/systemd/system/mysqld.service
[root@e995b6d81559 lib]# /usr/lib/systemd/system/mysqld.service

/usr/lib/systemd/system/mysqld.service: line 17: [Unit]: command not found
/usr/lib/systemd/system/mysqld.service: line 18: Community: command not found
/usr/lib/systemd/system/mysqld.service: line 22: [Install]: command not found
/usr/lib/systemd/system/mysqld.service: line 26: [Service]: command not found
/usr/lib/systemd/system/mysqld.service: line 34: pre: command not found
/usr/lib/systemd/system/mysqld.service: line 37: --basedir=/usr: No such file or directory
/usr/lib/systemd/system/mysqld.service: line 40: post: command not found

[root@e995b6d81559 lib]# systemctl start mysqld
Failed to get D-Bus connection: Operation not permitted
[root@e995b6d81559 lib]# systemctl start mysql 
Failed to get D-Bus connection: Operation not permitted

猜你喜欢

转载自blog.csdn.net/Alice66666/article/details/83090101