Jagand Posted April 21, 2010 Share Posted April 21, 2010 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 More sharing options...
andrewgauger Posted April 21, 2010 Share Posted April 21, 2010 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) Link to comment https://forums.phpfreaks.com/topic/199267-ok-packet-6-bytes-shorter-than-expected/#findComment-1045896 Share on other sites More sharing options...
Mchl Posted April 21, 2010 Share Posted April 21, 2010 Which MySQL version you use? Link to comment https://forums.phpfreaks.com/topic/199267-ok-packet-6-bytes-shorter-than-expected/#findComment-1045913 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.