LoginLogin About

Support » Knowledge Base » Shop-Script » Troubleshooting »

"Error connect to mysql" message in the storefront

If the connection to the MySQL server fails, WebAsyst Shop-Script displays the following error message in the storefront:

Error connect to mysql

In this case it is recommended to the check whether correct connection parameters are saved in WebAsyst Installer sections "Settings -> MySQL server" and "Settings -> Database". Change those parameters to correct values, if necessary.

If all MySQL connection parameters are correct, remove or rename file temp/scdb/.settings.DATABASE_KEY. It is a temporary file, if removed it will be re-generated with correct contents. This measure should restore connection to the MySQL server.