[1] 20752 -bash: $: command not found [1]+ Exit 127 $ sudo mysqld_safe --init-file=/path/to/mysql-init
时间: 2024-05-19 09:16:07 浏览: 90
This error message indicates that the command prompt is trying to execute a command that begins with a "$" symbol, which is not a valid command. It is possible that the "$" symbol was accidentally included in the command when it was entered.
The second part of the error message indicates that the command "sudo mysqld_safe --init-file=/path/to/mysql-init" was executed but exited with an error code of 127. This could be due to a variety of reasons, such as a missing or incorrect file path, insufficient permissions, or an issue with the MySQL server itself.
To resolve this issue, try removing the "$" symbol from the beginning of the command, ensuring that the file path specified in the "--init-file" option is correct, and checking that the user executing the command has sufficient permissions to run it. Additionally, you may want to check the MySQL server logs for any error messages that could provide more information about the issue.
阅读全文