0

I am trying to uplaod my web to a host, I've had some problems I managed to solve but no this one. It's related to the database, and it only happens sometimes.

In some cases I have to query the database or even for the user registration it works fine, but in other cases I got the error:

Unable to connect to your database server using the provided settings.

Filename: core/Loader.php

Line Number: 346

I debugged the error (thanks @Valeh Hajiyev: CodeIgniter: Unable to connect to your database server using the provided settings Error Message) and in every case the connection seemed to be fine.

I hope someone who has had this problem before could help me.

EDIT: Oh snap! I just found out that refreshing the page a couple of times makes it work. What??

Community
  • 1
  • 1
dabadaba
  • 9,064
  • 21
  • 85
  • 155

0 Answers0