【发布时间】:2014-09-06 13:50:58
【问题描述】:
我不知道如何解决这个问题:
dyn-72-33-214-45:python mona$ sudo /usr/local/mysql/bin/mysqld stop
2014-09-06 09:49:04 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-09-06 09:49:04 22992 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.6.15-osx10.7-x86_64/data/ is case insensitive
2014-09-06 09:49:04 22992 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
2014-09-06 09:49:04 22992 [ERROR] Aborting
2014-09-06 09:49:04 22992 [Note] Binlog end
2014-09-06 09:49:04 22992 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
【问题讨论】:
-
我想你想执行
sudo /etc/init.d/mysql stop(一个 initscript 而不是 mysqld 二进制文件)。 -
/usr/local/mysql/bin/mysqladmin -u root 关机
-
@Donal /usr/local/mysql/bin/mysqladmin -u root shutdown /usr/local/mysql/bin/mysqladmin: 连接到 'localhost' 的服务器失败错误: '无法连接通过 socket '/tmp/mysql.sock' (2)' 到本地 MySQL 服务器 检查 mysqld 是否正在运行并且 socket: '/tmp/mysql.sock' 存在!
-
你想做什么?你想启动还是停止它? - 你确定 mysqld 真的在运行吗?
-
mysqld 正在运行吗?用这个检查它: ps -ef | grep mysqld