在高原的阿北
2016-10-09 22:52
老师,我的MySQL服务安装完以后为什么不能用mysqld开启服务,提示为mysqld:command not found,也没有其他报错,是哪里不对吗?或者哪里还有其他的配置??
mysqld这个命令不存在。默认直接输入mysqld是在/usr/bin/mysqld、/usr/sbin/mysqld、/usr/local/bin/mysqld等路径下寻找。编译安装的时候不会把mysqld放到这几个目录下。你要到/usr/local/mysql/bin/myqsld
[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)
cmake make && make install完了之后/usr/local/mysql/bin/myqsld 没有这个目录请问怎么办?
我也没有这个目录
/usr/local/mysql/bin/myqsld 没有这个目录,怎么办
我也是启动不了
PHP环境LAMP/LNMP安装与配置
45306 学习 · 224 问题
相似问题