Jump to content

Database not connecting again!!!


I-AM-OBODO

Recommended Posts

Hi all.

My database just stopped connecting? I have tried everything i could but no way!
When i login to the page, it shows just blank page. So i started trying to figure out what could be the problem by disabling some included files.
Then i discovered the problem is from my database connection.
I re-uploaded the files and still not working (still blank)

What could have happened and what can i do?

I even went as far as creating the database connection inside the page to see if it will work but still no way!

 

Thanks

Link to comment
Share on other sites

First thing I would do is check if I can connect to the database by other means (PhpMyAdmin, MySQL Workbench or command line for instance, assuming you are usiing a MySql database)

Have you got error reporting turned on in your php.ini file?

26 minutes ago, I-AM-OBODO said:

What could have happened and what can i do?

Lots of things could have happened, but as you are giving us no information whatsoever, other than "it doesn't work", there isn't much we can do for you.

Link to comment
Share on other sites

12 hours ago, Barand said:

First thing I would do is check if I can connect to the database by other means (PhpMyAdmin, MySQL Workbench or command line for instance, assuming you are usiing a MySql database)

Have you got error reporting turned on in your php.ini file?

Lots of things could have happened, but as you are giving us no information whatsoever, other than "it doesn't work", there isn't much we can do for you.

Its showing just blank page

Link to comment
Share on other sites

We can't help you with the information you are providing, which essentially is:  it's not working.

 

  • What is your hosting setup?  (Apache, PHP, MySQL?  Linux?)
    • PHP Version
    • Basic php parameters you get from phpinfo()?
  • Is this shared hosting? VPS?
  • What hosting company is it?
  • What changed? 
    • You stated that this was working and then stopped?  Did something change?
  • MySQL related:
    • Did you determine if the mysql credentials being used still work using phpMyAdmin/CPanel etc
  • Logs, logs, logs!
    • When errors occur they are typically logged somewhere.  You want to be clear on your production setup, and where and when you are logging things, so you can hunt down problems like this.
Link to comment
Share on other sites

When developing I find it much much easier to see the errors on my screen as I run/test my script instead of having to go download an error log file and viewing that.  Try it.  But be sure to turn if off once you have completed your project.

Link to comment
Share on other sites

18 hours ago, ginerjm said:

When developing I find it much much easier to see the errors on my screen as I run/test my script instead of having to go download an error log file and viewing that.  Try it.  But be sure to turn if off once you have completed your project.

Will do. Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.