1. 程式人生 > >docker cento基礎映象 yum安裝的mysql 啟動問題

docker cento基礎映象 yum安裝的mysql 啟動問題


[[email protected] 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 [[email protected] lib]# chmod +x /usr/lib/systemd/system/mysqld.service
[[email protected] 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 [[email protected] lib]# systemctl start mysqld Failed to get D-Bus connection: Operation not permitted [[email protected] lib]# systemctl start mysql Failed to get D-Bus connection: Operation not permitted