[PrestaShopException]

Link to database cannot be established: %s
at line 964 in file classes/Tools.php

959.     * @param bool $htmlentities By default at true for parsing error message with htmlentities
960.     */
961.     public static function displayError($string = 'Fatal error', $htmlentities = true, Context $context = null)
962.     {
963.         if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_) {
964.             throw new PrestaShopException($string);
965.         } else if ('Fatal error' !== $string) {
966.             return $string;
967.         }
968. 
969.         return Context::getContext()->getTranslator()->trans('Fatal error', array(), 'Admin.Notifications.Error');