close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

MySQL Connect Error on Development but not on Production Machine

Thread began 3/19/2010 9:56 am by yogastudents362523 | Last modified 3/20/2010 12:42 am by yogastudents362523 | 1590 views | 4 replies

yogastudents362523

MySQL Connect Error on Development but not on Production Machine

OK. On to my next idiot's mistake.

I am getting the underneath error when connecting to my database from my home-based Development machine. Yet the exact same connection file, to the exact same database, using the exact same credentials, works OK upon the Production Machine located on my host's server.

Warning: mysql_pconnect() [function.mysql-pconnect]: OK packet 6 bytes shorter than expected in ... on line 9

Warning: mysql_pconnect() [function.mysql-pconnect]: mysqlnd cannot connect to MySQL 4.1+ using old authentication in ... on line 9

Fatal error: mysqlnd cannot connect to MySQL 4.1+ using old authentication in ... on line 9


The contents of the Connection.php script are a standard WebAssist file as follows:
$hostname_... = "www.xxxxx.com";
$database_yyyy = "yyyyy";
$username_yyyy = "zzzzzz";
$password_yyyyy = "youmustbekidding";
$sacredthread = mysql_pconnect($hostname_...., $username_sacredthread, $password_sacredthread) or trigger_error(mysql_error(),E_USER_ERROR);

That last line is the aforementioned Line 9.

I have already Googled the error. It's usually associated with a change in password procedures. However, I thought it might be best to figure out why this Fatal Error is happening ONLY when I run my file from my Production Machine (to connect to the specific database), yet the exact same credentials in the exact same file work OK when the file is located on the Server hosted by my ISP. I do not want to get my ISP to change any settings if it can be avoided.

I am sure this is simple. Most likely some setting in php.ini?

I have approached the wise here who I am sure know and have a simple remedy. Thanks.
Bye now.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...