Support

Site Restoration

#12643 Database connection error (2): Could not connect to MySQL.

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by on Friday, 13 July 2012 18:00 CDT

user64707
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? YES
Have I searched the tickets before posting? YES
Have I read the documentation before posting (which pages?)? YES AND WATCHED THE VIDEOS
Joomla! version: (2.5.3)
PHP version: (5.2)
MySQL version: (unknown)
Host: (zen.co.uk but site moved from 123 Reg)
Akeeba Backup version which took the backup: (3.5.1 - the lastest stable copy)
Kickstart version used to extract the backup: (latest stable copy)

Description of my issue: Moving Joomla 2.5.3 site from 123-Reg to Zen Internet

Backup installed at 123 reg
Backup created at 123 reg
Downloaded using FileZilla
JPA file upload to Zen using FileZilla
Run Kickstart at Zen
Connect to DB in Kick Start install fine
Go to Site Front or Backend of site and get following error:
Database connection error (2): Could not connect to MySQL.
Site not visible.

Help required. Thank you very much for your time. Zoe

nicholas
Akeeba Staff
Manager
For some reason your configuration.php file wasn't updated during the restoration. Please edit the configuration.php file in your site's root and enter your new site's database connection information.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user64707
Thank you for your rapid response. I have checked the config file and it appears to contain all the right information including DB name, user, prefix, etc.

I checked this before sending a ticket as I susspected it might be that.
Sorry.
Zoe

nicholas
Akeeba Staff
Manager
Hm, this error message can't mean anything else. It's actually quite clear: Joomla! complains that it can't connect to the database. Maybe you can try toggling from mysql (no trailing i) to mysqli (with trailing i), or vice versa, in case your host only supports one of them.

If all else fails, please do what I'd do: create a new db user, write down the password (and quadruple check it), assign it to the database, triple-check the database connection information and edit your configuration.php file, entering all connection information afresh.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user64707
Can I just edit the config file to do this or do I need to run kickstart again?
Zoe

nicholas
Akeeba Staff
Manager
Just edit configuration.php. You don't need to go through the entire restoration process again.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user64707
Tried that aand am now getting
Database connection error (3): Could not connect to database

The error number has changed

user64707
My fault, I eited the DB name as well as the uer by mistake. It is all working!!!
Thank you so much!

Zoe

nicholas
Akeeba Staff
Manager
You're welcome, Zoe!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!