Based on the output you provided, it appears that the directory containing the MySQL binaries is indeed included in your PATH environment variable.
Since you mentioned that running mysql --version
shows version 5.7.41, this suggests that MySQL is installed correctly and the mysql command can be found in one of the directories listed in your PATH.
However, if you are still encountering the error “mysqld_safe: command not found”, it’s possible that the mysqld_safe binary is not present in the same directory as the mysql binary. In some cases, mysqld_safe may be located in a different directory or may not be included with the MySQL installation by default.
To check if mysqld_safe is present on your system, you can try running the following command:
find / -name mysqld_safe
This will search your entire filesystem for any files or directories named mysqld_safe. If mysqld_safe is found, the command will output its path. If it is not found, you may need to install it separately or check if it is included with your MySQL installation under a different name or location.