Page 1 of 1

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

PostPosted: 04. December 2012 14:57
by Alistair
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?

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

PostPosted: 05. December 2012 14:40
by Alistair
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)

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

PostPosted: 05. December 2012 20:33
by JonB
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

:)

Re: How to "upgrade" to XAMPP 1.8.0

PostPosted: 06. December 2012 17:29
by Alistair
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]

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

PostPosted: 06. December 2012 17:51
by Altrea
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