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? Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 21, 2010 Share Posted April 21, 2010 Which MySQL version you use? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.