Upgrading Tables with WP-CLI | WordPress.org

[ad_1]

I have a lot of cPanel sites and many are older. I’m using a shell script, below, in case it helps someone. The plugin says “Error: No tables are eligible to enable.”

Am I able to upgrade the tables with this plugin, even if that were to require two sequential commands?

Thanks so much for you efforts with this plugin and the other one. It really speeds up my older sites.

#!/bin/bash

declare -a arr=(
"account1"
"account2"
                )

for i in "${arr[@]}"
do
   echo _______________________________________________________________________________
   echo "**** $i ****"
   cd /home/"$i"/www
   wp plugin install index-wp-mysql-for-speed --allow-root --activate
   wp index-mysql enable --all --allow-root
   echo _______________________________________________________________________________
   echo ""
   echo ""


   # or do whatever with individual element of the array
done

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer