Question:
I get "Database Error: Unable to connect to the database:Could not connect to MySQL" on my website now.?
2009-07-27 20:01:03 UTC
Hello,

I have been messing with web design for a short time now and a online friend of mine recommended joomla to me for it's simplicity and ease of use. It seems pretty simple but I am pretty lost when it comes down to it.

I installed joomla 1.5 on my webserver (web host is host gator) and I installed joomla on my windows vista PC. I went through a few tutorials, made some modules, a simple, basic web design layout and all that. When I (think) went to upload it using joomla's FTP it seemed to work eventually, but now I get this "Database Error: Unable to connect to the database:Could not connect to MySQL" on the page I made. Obviously I am failing to figure out this issue as I have been for a few days now.

Any advice would be greatly appreciated.

Thanks!
Three answers:
mike
2009-07-28 19:15:51 UTC
It most likely can be these 2 problems.



1. You did not add the connection php code to the page (which should be done using a template to insure that this mistake won't happen or use a web design tool)

2. Location of your connection file. Most likely you created this page in a subdomain folder (like www.example.com/folder). In that case make sure you direct to the connection sometimes programs produce an external .php connection folder that must be attached to the page and the location is key in making this work.
2016-05-29 13:24:15 UTC
A database connection require 3 essential connectivity components: 1. Connection (with user id and password). 2. Finding the correct table 3. Running the query You have an error #1 which means there is no connection whatsoever and that could be a software error or the database server is offline. Contact the web site administrator to correct this.
Fred
2009-07-27 20:08:15 UTC
Do you have MySQL installed on your web site? The Joomla version is only local to your computer and the development environment. You also need to have the same architecture (database, connection tools, cgi, etc.) on the actual production server!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...