Replies: 3
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