MySQL 5.7 Displays "OSError 8: Exec format error" During Automatic FDO
Symptom
MySQL 5.7 displays "OSError 8: Exec format error" during automatic FDO.
Key Process and Cause Analysis
An incorrect interpreter is used to interpret the script file.
Conclusion and Solution
- Modify auto_bolt.sh in the A-FOT installation directory. If the installation directory is /usr/bin/, the file path is /usr/bin/auto_bolt.sh.Find the following content in the file:
1echo "${gcc_path}/bin/g++
Modify it as follows:
1echo -e "#!/bin/bash\n${gcc_path}/bin/g++
The following figure shows the modification result:

- Perform automatic FDO again.
Parent topic: Troubleshooting