WordPress.org

Forums

UpdraftPlus Backup and Restoration
[resolved] mysql - a link to the server could not be established (5 posts)

  1. barthat
    Member
    Posted 1 year ago #

    Recently I have noticed the following errors in my logs. I saw your comments elsewhere re plugins not affecting server connections but just in case this helps with your code development I thought I would include it.

    [Mon Sep 02 04:33:01 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): A link to the server could not be established in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434
    [Mon Sep 02 04:33:01 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): Access denied for user 'UNKNOWN_USER'@'localhost' (using password: NO) in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434
    [Mon Sep 02 04:32:43 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): A link to the server could not be established in /home/username/public_html/example.com/wp-content/plugins/updraftplus/backup.php on line 961
    [Mon Sep 02 04:32:43 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): Access denied for user 'username'@'localhost' (using password: NO) in /home/username/public_html/example.com/wp-content/plugins/updraftplus/backup.php on line 961
    [Mon Sep 02 04:32:36 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): A link to the server could not be established in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434
    [Mon Sep 02 04:32:36 2013] [error] [client 123.45.67.890] PHP Warning:  mysql_get_server_info(): Access denied for user 'username'@'localhost' (using password: NO) in /home/username/public_html/example.com/wp-content/plugins/updraftplus/updraftplus.php on line 434

    If you need any more info let me know.

    I'll mark this post as not a support issue.

    Thanks for a great plugin.

    http://wordpress.org/plugins/updraftplus/

  2. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Thanks for the report. Those lines come from where UpdraftPlus tries to read your MySQL server version for logging purposes (which then helps for debugging) - which it has to do outside of the normal WordPress API. Your setup must be a little unusual if it produces the warning. How does your site connect to the database?

    I've also tweaked the code so that future versions won't produce any warning (as it's a speculative function call to try to work out the environment if possible, it's better to be silent if it doesn't work).

    David

  3. barthat
    Member
    Posted 1 year ago #

    Yes, now that you say that I think it probably is unusual. I am using pdo_mysql via the plugin WP DB Driver http://wordpress.org/plugins/wp-db-driver/

    I hope this helps.

  4. David Anderson
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for that. I'm quite pleased to know that UD works with the next-gen WordPress DB driver... it uses some trickery to speed things up, but we tried to make it compatible in case those tricks didn't work in future. If a few spurious warnings (now suppressed in the next version!) are all that's not working so far, then that's good news!

    David

  5. barthat
    Member
    Posted 1 year ago #

    Yes, A wonderful achievement - your plugin is great and I really like detailed logs it produces. I could see in the logs that despite the 'errors' the backup process was working smoothly.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • UpdraftPlus Backup and Restoration
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.