Jump to content

Issues with mysql_connect and PHP 5.3


calmcajun

Recommended Posts

I would like to use both PHP 5.3 and the mysql functions but it appears the PHP 5.3 configuration(which is hosted on Brinkster) is somehow amiss. I talked to the Brinkster tech and all he did was switch the PHP version from 5.3 to 5.2 which breaks my PHP website as I am using some datetime functions. Here are the errors I am getting:

 

Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:554) in C:\Sites\Single47\aurawind2k\webroot\crankygamer\dbTest.php on line 8

 

Warning: mysql_connect() [function.mysql-connect]: OK packet 1 bytes shorter than expected in C:\Sites\Single47\aurawind2k\webroot\crankygamer\dbTest.php on line 8

 

Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file in C:\Sites\Single47\aurawind2k\webroot\crankygamer\dbTest.php on line 8

 

Link to comment
Share on other sites

  • 5 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.