Question

执行sh mysqld --user=mysql时报错,mysqld: mysqld: cannot execute binary file


Solution

mysqld: mysqld: cannot execute binary file说的很明白了。不能执行二进制文件。

### error
localhost:bin Sean$ sh mysqld --user=mysql
mysqld: mysqld: cannot execute binary file

### success
mysqld --user=mysql

### backup
nohup  mysqld --user=mysql > mysql.log  2>&1 &
  • 注: 有人问解决办法是啥? 解决办法是success标签内的方法 mysqld --user=mysql. 这样就可以常规启动了. backup是用来将启动命令写在脚本内, 并放置后台运行.

reference

[1]. (MY CSDN)mysqld: Too many arguments (first extra is ‘start’).
[2]. (Official)Re: Mysql cannot execute binary file

更多推荐