The error you're encountering, Database error 2059: Database Connection Error, specifically indicates that MySQL (or MariaDB) is unable to load the https
plugin. Here's a breakdown of what's happening and how to address it:
means that MySQL/MariaDB is configured to use theSQLSTATE[HY000] Plugin https could not be loaded: /usr/lib64/mysql/plugin/https.so: cannot open shared object file: No such file or directory
https
plugin (likely for secure connections), but the required shared library (https.so
) is missing or not found at the specified path.https.so
file is not installed or not located at /usr/lib64/mysql/plugin/
.my.cnf
or my.ini
) might be set to load the https
plugin, but the plugin is not available.https
plugin might not be installed as part of your MySQL/MariaDB installation.Run the following command to check if the file exists:
bashls /usr/lib64/mysql/plugin/https.so
If it doesn't exist, you may need to install it.
If you are not using HTTPS connections for MySQL, you can disable the plugin:
/etc/my.cnf
or /etc/mysql/my.cnf
).and comment it out or remove it.plugin-load=https=https.so
bashsudo systemctl restart mysql # or sudo systemctl restart mariadb
If you need the https
plugin, install it:
bashsudo yum install MariaDB-shared # or sudo apt-get install mariadb-plugin-connect
mysql-server
package or a related package. Check your distribution's documentation.After installing, check if the plugin is available:
sqlSHOW PLUGINS;
Look for https
in the list.
Ensure the plugin file has the correct permissions and is accessible by the MySQL user.
This Chat is read-only. Login to resume chatting.