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

"Failed to load mysqltcl" Is Displayed When HammerDB Is Used

Symptom

The message "Failed to load mysqltcl" is displayed when HammerDB is used.

Key Process and Cause Analysis

Library files required by HammerDB do not exist in the /usr/local/lib64 directory.

Conclusion and Solution

  1. Copy libmysqlclient* in the database installation path to /usr/local/lib64.
    cp /usr/local/mysql-8.0.20-tpch/lib/libmysqlclient.so /usr/local/lib64/

    In this example, /usr/local/mysql-8.0.20-tpch/lib/ is the database installation path, and /usr/local/lib64 is the path of the system library files. Change them to the actual paths.

  2. Upgrade the GCC version to 7.3.0.