The actual error in the script is slightly higher:
$mysqld = './bin/mysqld';
Also, not sure why it would not pass the variable correctly to the function so that the output would be clearer:
-x $mysqld or -f "$mysqld.exe" or cannot_find_file($mysqld);
This needs to be fixed also so that "FATAL ERROR: Could not find" actually contained what it cannot find in the future.
The actual error in the script is slightly higher:
$mysqld = './bin/mysqld';
Also, not sure why it would not pass the variable correctly to the function so that the output would be clearer:
-x $mysqld or -f "$mysqld.exe" or cannot_ find_file( $mysqld) ;
This needs to be fixed also so that "FATAL ERROR: Could not find" actually contained what it cannot find in the future.