could not connect to MySQL!

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
nexus01
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jan 10, 2012 4:22 pm

could not connect to MySQL!

Post by nexus01 » Tue Jan 10, 2012 4:38 pm

Hi folks, I'm installing Joomla 1.5 on a localhost but it's giving me an error "Could not connect to the database. Connector returned number: Unable to connect to the database:Could not connect to MySQL." Please I need your assistance. Thank you.

User avatar
DeanMarshall
Joomla! Hero
Joomla! Hero
Posts: 2352
Joined: Fri Aug 19, 2005 2:26 am
Location: Lancaster, Lancashire, United Kingdom
Contact:

Re: could not connect to MySQL!

Post by DeanMarshall » Tue Jan 10, 2012 5:41 pm

Is MySQL definitely installed?
Is the MySQL service definitely running at the moment?
Are you connecting using MySQLi the 'improved' php mysql connector - does your PHP definitely have the correct extensions/modules installed or enabled?


Dean
Dean Marshall Consultancy - six Joomla experts - http://www.deanmarshall.co.uk/

Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-se ... pport.html

postermax
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Jan 11, 2012 4:59 pm
Location: Germany
Contact:

Re: could not connect to MySQL!

Post by postermax » Wed Jan 11, 2012 5:51 pm

Hello,
ich have this Problem:
"Database Error: Unable to connect to the database: Could not connect to MySQL"

the db data are correct insert

thx

ngyukkwan
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Feb 27, 2012 7:03 am

Re: could not connect to MySQL!

Post by ngyukkwan » Mon Feb 27, 2012 7:08 am

Just wondering if you have created a new user in MySQL for Joomla or not. If yes, have you set your user in MySQL's host to 'localhost'?
Alex

User avatar
pontikos
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 214
Joined: Sat Jan 30, 2010 11:59 pm

Re: could not connect to MySQL!

Post by pontikos » Sat Mar 17, 2012 7:38 pm

If you are on MAMP in Mac OS X, make sure you use root as db user and root as db pswd

GeorgeHB
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sun Jun 24, 2012 8:45 pm

Re: could not connect to MySQL!

Post by GeorgeHB » Mon Jun 25, 2012 2:25 am

Thank you pontikos. Your advice got me past the "connect to db" page.


Locked

Return to “Installation 1.5”