Check the MySQL log file
NOTE: The Approach A sections referred to below do not apply to Bitnami native installers. Users of Bitnami native installers should refer only to the Approach B sections.
NOTE: We are in the process of modifying the configuration for many Bitnami stacks. On account of these changes, the file paths and commands stated in this guide may change depending on whether your Bitnami stack uses MySQL or MariaDB.
Linux and macOS native installer users can identify which database server is used in the stack by running the command below:
$ test -d installdir/mariadb && echo "MariaDB" || echo "MySQL"
Windows native installer users can identify which database server is used in the stack by checking for the presence of the installdir/mariadb directory. If present, the installer uses MariaDB and if not, it uses MySQL.
Depending on which database server (MySQL or MariaDB) is used by the installation, use the appropriate guides in our documentation for database-related operations.
The main MySQL log file is located at one of the following locations, on the MySQL database server host:
- For Bitnami installations following Approach A (using Linux system packages): installdir/mysql/logs/mysqld.log
- For Bitnami installations following Approach B (self-contained installations): installdir/mysql/data/mysqld.log
WordPress users can also consider installing an optimization plugin such as WP-Optimize to optimize the database.