Jump to content

OK packet 6 bytes shorter than expected


Jagand

Recommended Posts

I am trying to execute a script, purpose of which is to load the data present in my localhost into mysql database present in host server. I am getting following error when doing so

 

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

 

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

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'myname'@'localhost' (using password: NO) in

 

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in

 

how do i resolve it?

Link to comment
https://forums.phpfreaks.com/topic/199267-ok-packet-6-bytes-shorter-than-expected/
Share on other sites

myname'@'localhost'

 

looks like you are trying to use your authentication credentials for your home network on the remote server.  Check the credentials you are using to connect to the remote site.  Make sure all the variables you are using are different name (don't reuse variables for the two connections)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.