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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby Alistair » 04. December 2012 14:57

Long story short, I want to update my xampp, presently working on 1.7.2. And since xampp doesn't allow upgrades I downloaded the more recent 1.8.1 and installed it, copied a folder in htdocs from the older xampp to see if it works but it doesn't, what's wrong?
Alistair
 
Posts: 10
Joined: 11. December 2009 09:13

Re: Database connection error (2): Could not connect to MySQ

Postby Alistair » 05. December 2012 14:40

If I didn't expalin correctly the above, can anyone tell me where are the instructions for "updating" to newest version of XAMPP? (meaning installing the newest version and use the websites you had already created in the previous version, I've checked the config file, username and password are correct so it must be some config over XAMPP)
Alistair
 
Posts: 10
Joined: 11. December 2009 09:13

Re: Database connection error (2): Could not connect to MySQ

Postby JonB » 05. December 2012 20:33

Well - there are those two stickies up at the top -

How to "upgrade" to XAMPP 1.8.0 or 1.8.1

viewtopic.php?f=16&t=50988

and -

Read before installing or upgrading to 1.8.0 or 1.8.1
viewtopic.php?f=16&t=50985

:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How to "upgrade" to XAMPP 1.8.0

Postby Alistair » 06. December 2012 17:29

hwalker1 wrote:That's a great article, but it looks rather a big job.
I'll stick to 1.73 and do a new install on a different computer.
Pity the standard release notes don't tell you all of this.
Its not even obvious that there is not an upgrade package.


Very wise, Icouldn't agree more, it's a total mess actually, personally I can see the XAMPP welcome page but I can't understand how to transfer my websites from the previous XAMPP version. I'll just stick with my 1.7.2, shame because it's quite slow, but still, better than nothing.

[EDIT by Altrea: splitted from sticky post, because sticky posts are not open for personal support requests]
Alistair
 
Posts: 10
Joined: 11. December 2009 09:13

Re: Database connection error (2): Could not connect to MySQ

Postby Altrea » 06. December 2012 17:51

Hi Alistair,

"Database connection error (2): Could not connect to MySQL." is very self speaking. just copying the static files in htdocs is not enough for database driven webapplications.
You also need to create the database login user/password combination and export/import the database to the new mysql.

Since Database connection error (2) just occurs if the database connection parameters (host, user, password) are not fitting any database user, i just can suggest you to doublecheck the credentials and database permissions of that user.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6827
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 37 guests