Title: Progblems during upgrade the plugin, using wp-cli
Last modified: November 17, 2023

---

# Progblems during upgrade the plugin, using wp-cli

 *  Resolved [erikmelkersson](https://wordpress.org/support/users/erikmelkersson/)
 * (@erikmelkersson)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/progblems-during-upgrade-the-plugin-using-wp-cli/)
 * We have wp 6.4.1, php 8.2.12
   We get these issues and I think it is when this 
   plugin has a new version. The occurrences seem to match. We upgrade plugins using
   wp-cli.Seeking advice on how to proceed.WordPress database error Cannot load 
   from mysql.proc. The table is probably corrupted for query SHOW FUNCTION STATUS
   LIKE ‘wp_fn_realmedialibrary_childs’ made by include(‘phar:///usr/bin/wp/php/
   boot-phar.php’), include(‘phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.
   php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner-
   >start, WP_CLI\Runner->load_wordpress, require(‘wp-settings.php’), do_action(‘
   plugins_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, MatthiasWeb\RealMediaLibrary\
   base\Core->updateDbCheck, MatthiasWeb\RealMediaLibrary\Activator->install, MatthiasWeb\
   RealMediaLibrary\Activator->dbDelta, MatthiasWeb\RealMediaLibrary\Activator->
   supportsChildQuery, MatthiasWeb\RealMediaLibrary\Activator->checkDirtyFunctionWordPress
   database error Cannot load from mysql.proc. The table is probably corrupted for
   query DROP FUNCTION IF EXISTS wp_fn_realmedialibrary_childs made by include(‘
   phar:///usr/bin/wp/php/boot-phar.php’), include(‘phar:///usr/bin/wp/vendor/wp-
   cli/wp-cli/php/wp-cli.php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner-
   >process, WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require(‘wp-settings.
   php’), do_action(‘plugins_loaded’), WP_Hook->do_action, WP_Hook->apply_filters,
   MatthiasWeb\RealMediaLibrary\base\Core->updateDbCheck, MatthiasWeb\RealMediaLibrary\
   Activator->install, MatthiasWeb\RealMediaLibrary\Activator->dbDelta, MatthiasWeb\
   RealMediaLibrary\Activator->supportsChildQuery, MatthiasWeb\RealMediaLibrary\
   Activator->install, MatthiasWeb\RealMediaLibrary\Activator->createChildQueryFunction

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/progblems-during-upgrade-the-plugin-using-wp-cli/#post-17212250)
 * Hey [@erikmelkersson](https://wordpress.org/support/users/erikmelkersson/) !
 * Does the issue appear on every update? What happens, if you update manually via
   WordPress dashboard?
 *  Thread Starter [erikmelkersson](https://wordpress.org/support/users/erikmelkersson/)
 * (@erikmelkersson)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/progblems-during-upgrade-the-plugin-using-wp-cli/#post-17214530)
 * 
   Testing to downgrade first in order to upgrade. This is reproduce-able every
   time I run it.% wp plugin update real-media-library-lite –version=4.21.16Installing
   Real Media Library: Media Library Folder & File Manager (4.21.16)Downloading 
   installation package from [https://downloads.wordpress.org/plugin/real-media-library-lite.4.21.16.zip…](https://downloads.wordpress.org/plugin/real-media-library-lite.4.21.16.zip…)
   Unpacking the package…Installing the plugin…Removing the old version of the plugin…
   Plugin updated successfully.Success: Installed 1 of 1 plugins.% wp plugin update
   real-media-library-liteWordPress database error Cannot load from mysql.proc. 
   The table is probably corrupted for query SHOW FUNCTION STATUS LIKE ‘wp_fn_realmedialibrary_childs’
   made by include(‘phar:///usr/bin/wp/php/boot-phar.php’), include(‘phar:///usr/
   bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\
   LaunchRunner->process, WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require(‘
   wp-settings.php’), do_action(‘plugins_loaded’), WP_Hook->do_action, WP_Hook->
   apply_filters, MatthiasWeb\RealMediaLibrary\base\Core->updateDbCheck, MatthiasWeb\
   RealMediaLibrary\Activator->install, MatthiasWeb\RealMediaLibrary\Activator->
   dbDelta, MatthiasWeb\RealMediaLibrary\Activator->supportsChildQuery, MatthiasWeb\
   RealMediaLibrary\Activator->checkDirtyFunctionWordPress database error Cannot
   load from mysql.proc. The table is probably corrupted for query DROP FUNCTION
   IF EXISTS wp_fn_realmedialibrary_childs made by include(‘phar:///usr/bin/wp/php/
   boot-phar.php’), include(‘phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.
   php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner-
   >start, WP_CLI\Runner->load_wordpress, require(‘wp-settings.php’), do_action(‘
   plugins_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, MatthiasWeb\RealMediaLibrary\
   base\Core->updateDbCheck, MatthiasWeb\RealMediaLibrary\Activator->install, MatthiasWeb\
   RealMediaLibrary\Activator->dbDelta, MatthiasWeb\RealMediaLibrary\Activator->
   supportsChildQuery, MatthiasWeb\RealMediaLibrary\Activator->install, MatthiasWeb\
   RealMediaLibrary\Activator->createChildQueryFunctionEnabling Maintenance mode…
   Downloading update from [https://downloads.wordpress.org/plugin/real-media-library-lite.4.21.17.zip…](https://downloads.wordpress.org/plugin/real-media-library-lite.4.21.17.zip…)
   Unpacking the update…Installing the latest version…Removing the old version of
   the plugin…Plugin updated successfully.Disabling Maintenance mode…+————————-+————-
   +————-+———+| name | old_version | new_version | status |+————————-+————-+————-
   +———+| real-media-library-lite | 4.21.16 | 4.21.17 | Updated |+————————-+————-
   +————-+———+Success: Updated 1 of 1 plugins.% wp plugin update real-media-library-
   liteWordPress database error Cannot load from mysql.proc. The table is probably
   corrupted for query SHOW FUNCTION STATUS LIKE ‘wp_fn_realmedialibrary_childs’
   made by include(‘phar:///usr/bin/wp/php/boot-phar.php’), include(‘phar:///usr/
   bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\
   LaunchRunner->process, WP_CLI\Runner->start, WP_CLI\Runner->load_wordpress, require(‘
   wp-settings.php’), do_action(‘plugins_loaded’), WP_Hook->do_action, WP_Hook->
   apply_filters, MatthiasWeb\RealMediaLibrary\base\Core->updateDbCheck, MatthiasWeb\
   RealMediaLibrary\Activator->install, MatthiasWeb\RealMediaLibrary\Activator->
   dbDelta, MatthiasWeb\RealMediaLibrary\Activator->supportsChildQuery, MatthiasWeb\
   RealMediaLibrary\Activator->checkDirtyFunctionWordPress database error Cannot
   load from mysql.proc. The table is probably corrupted for query DROP FUNCTION
   IF EXISTS wp_fn_realmedialibrary_childs made by include(‘phar:///usr/bin/wp/php/
   boot-phar.php’), include(‘phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.
   php’), WP_CLI\bootstrap, WP_CLI\Bootstrap\LaunchRunner->process, WP_CLI\Runner-
   >start, WP_CLI\Runner->load_wordpress, require(‘wp-settings.php’), do_action(‘
   plugins_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, MatthiasWeb\RealMediaLibrary\
   base\Core->updateDbCheck, MatthiasWeb\RealMediaLibrary\Activator->install, MatthiasWeb\
   RealMediaLibrary\Activator->dbDelta, MatthiasWeb\RealMediaLibrary\Activator->
   supportsChildQuery, MatthiasWeb\RealMediaLibrary\Activator->install, MatthiasWeb\
   RealMediaLibrary\Activator->createChildQueryFunctionSuccess: Plugin already updated.%
   wp plugin update real-media-library-liteSuccess: Plugin already updated. It does
   not warn when you try to upgrade again after this… until the next version comes.
   PS: Due to permissions settings we only run updates using another server account(
   not the web server account) and not via the web interface.
    -  This reply was modified 2 years, 5 months ago by [erikmelkersson](https://wordpress.org/support/users/erikmelkersson/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Progblems during upgrade the plugin, using wp-cli’ is closed to new replies.

 * ![](https://ps.w.org/real-media-library-lite/assets/icon-256x256.gif?rev=2293211)
 * [Real Media Library: Media Library Folder & File Manager](https://wordpress.org/plugins/real-media-library-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-media-library-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-media-library-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/real-media-library-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-media-library-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-media-library-lite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [erikmelkersson](https://wordpress.org/support/users/erikmelkersson/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/progblems-during-upgrade-the-plugin-using-wp-cli/#post-17214530)
 * Status: resolved