Webmastersite.net
Register Log In

Upgrade from 3.4.0 troubles
MySQL database connection failure

Comments on Upgrade from 3.4.0 troubles

xtree


Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania

Total Topics: 19
Total Comments: 50
xtree
Posted Feb 07, 2007 - 9:17 AM:

I am upgrading to latest version from 3.4.0. I followed instructions in the readme file (included with the package). Everything went fine, I did run upgrade.php, until I want to view my site. I get the following error.

"WSN Links is unable to render this page. The reason is described below:
Cannot establish a database connection.
MySQL returns the error . (It's possible that the web host's database is currently down, if so this is a temporary error and will go away when the database is accessible again.)
Version info: WSN Links 4.0.13"

I didnt alter any of the MySQL settings in the config.php file, which wasnt overwritten either.




Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Feb 07, 2007 - 10:05 AM:

What MySQL version? If it's mysql 4.1+ it's supposed to change your config.php from mysql to mysqli now. Check if your config says mysqli.

I'll try a 3.4.6 upgrade.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Feb 07, 2007 - 10:19 AM:

Tested, I have no problems installing 3.4.6 and then upgrading it to the current version. I'm working with MySQL 5 and it updated my config to mysqli. 3.4.0 should be the same.
xtree


Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania

Total Topics: 19
Total Comments: 50
xtree
Posted Feb 11, 2007 - 8:41 AM:

We're running MySQL4 4.1.9

I've checked config.php and it says

$dbtype = 'mysqli';
require_once 'databases/mysqli.php';


Not sure if thats what you asked.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Feb 11, 2007 - 10:38 PM:

Change those to mysql and save the file. You must've had the same issue as https://www.webmastersite.net/forums/thread/7167
xtree


Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania

Total Topics: 19
Total Comments: 50
xtree
Posted Feb 12, 2007 - 7:03 AM:

That was it.

Thanks for the help.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.