我要评分
获取效率
正确性
完整性
易理解

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

  1. 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:
    1
    echo "${gcc_path}/bin/g++
    

    Modify it as follows:

    1
    echo -e "#!/bin/bash\n${gcc_path}/bin/g++
    

    The following figure shows the modification result:

  2. Perform automatic FDO again.