store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 9:51 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 6 posts ] 
Author Message
 Post subject: PHP Upgraded to 5.2 and have problem connect to MySQL
Unread postPosted: Tue Feb 08, 2011 9:29 pm 
Offline
Forum User
Forum User

Joined: Sat Jul 03, 2010 7:48 pm
Posts: 9
Hi,

I've upgraded the PHP for Plesk from 5.1.6 to 5.2.17-1.el5.art and my Mysql remain 5.1.54-1.el5.art. Now my customer's website having problem to connect to the DB, please help. Do i need to upgrade the MySQL version as well?

I've heard some forum mentioned it's because of the php library version is different with the existing mysql version, how can i fix it?

Please Advice.

Thanks.


Top
 Profile  
 
 Post subject: Re: PHP Upgraded to 5.2 and have problem connect to MySQL
Unread postPosted: Tue Feb 08, 2011 10:54 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
Quote:
I've upgraded the PHP for Plesk from 5.1.6 to 5.2.17-1.el5.art and my Mysql remain 5.1.54-1.el5.art. Now my customer's website having problem to connect to the DB, please help. Do i need to upgrade the MySQL version as well?

I've heard some forum mentioned it's because of the php library version is different with the existing mysql version, how can i fix it?


Its not a problem, that forum is incorrect. This is intentional and its covered in the FAQ.

It would be helpful if you post the exact error.


Top
 Profile  
 
 Post subject: Re: PHP Upgraded to 5.2 and have problem connect to MySQL
Unread postPosted: Tue Feb 08, 2011 11:07 pm 
Offline
Forum User
Forum User

Joined: Sat Jul 03, 2010 7:48 pm
Posts: 9
There's no specific error message, it'll show different error message on different website.

Some will show "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY PageArrange ASC' at line 1 ", but actually the site is working fine before we upgraded to 5.2

Some show blank page when we try to connect to the DB.

Do we need to upgrade the Mysql in plesk as well?


Top
 Profile  
 
 Post subject: Re: PHP Upgraded to 5.2 and have problem connect to MySQL
Unread postPosted: Tue Feb 08, 2011 11:24 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7425
Location: earth
Sounds like you already did upgrade, and if youre making the connection and getting the SQL syntax error then you've ruled out it being a PHP or Mysql problem. Rather it sounds like your code isnt compatible with php 5.2


Top
 Profile  
 
 Post subject: Re: PHP Upgraded to 5.2 and have problem connect to MySQL
Unread postPosted: Tue Feb 08, 2011 11:55 pm 
Offline
Forum User
Forum User

Joined: Sat Jul 03, 2010 7:48 pm
Posts: 9
Then if we want to downgrade back to 5.1.6, how can we do that? Please advice the steps.


Top
 Profile  
 
 Post subject: Re: PHP Upgraded to 5.2 and have problem connect to MySQL
Unread postPosted: Thu Feb 10, 2011 4:26 am 
Offline
Forum User
Forum User

Joined: Sat Jul 03, 2010 7:48 pm
Posts: 9
It's ok, we've compared with the previous php.ini file and copied over those lines that are not in the new php.ini file. It's working fine now.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 6 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group