安装完MySQL以后不能用mysqld开启
老师,我的MySQL服务安装完以后为什么不能用mysqld开启服务,提示为mysqld:command not found,也没有其他报错,是哪里不对吗?或者哪里还有其他的配置??
老师,我的MySQL服务安装完以后为什么不能用mysqld开启服务,提示为mysqld:command not found,也没有其他报错,是哪里不对吗?或者哪里还有其他的配置??
2016-10-09
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2018-03-26T15:28:36.676550Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2018-03-26T15:28:36.676710Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.21) starting as process 4470 ... 2018-03-26T15:28:36.796058Z 0 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test 2018-03-26T15:28:36.796088Z 0 [Warning] Can't create test file /var/lib/mysql/localhost.lower-test 2018-03-26T15:28:36.796148Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root! 2018-03-26T15:28:36.796193Z 0 [ERROR] Aborting 2018-03-26T15:28:36.796256Z 0 [Note] Binlog end 2018-03-26T15:28:36.796757Z 0 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete [root@localhost bin]# /usr/local/mysql/bin/mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/usr/local/mysql/data/mysql.sock' (2)
举报