WordPress CLI Commands and some MYSQL Repair Commands

Loading

CREATE database NEO ;

USE NEO;

DROP database NEO ;

source /var/www/NEOBabyHPWorking.sql ;

GRANT ALL PRIVILEGES ON NEO.* TO 'stevee'@'localhost';

ALTER USER 'stevee'@'localhost' IDENTIFIED BY 'pw';

WP-CLI:
cd /opt
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
stevee@localhost:/opt$ sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
[sudo] password for stevee:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6571k 100 6571k 0 0 558k 0 0:00:11 0:00:11 --:--:-- 572k
stevee@localhost:/opt$ php wp-cli.phar --info
OS: Linux 5.15.0-53-generic #59-Ubuntu SMP Mon Oct 17 18:53:30 UTC 2022 x86_64
Shell: /bin/bash
PHP binary: /usr/bin/php8.0
PHP version: 8.0.25
php.ini used: /etc/php/8.0/cli/php.ini
MySQL binary: /usr/bin/mysql
MySQL version: mysql Ver 8.0.31-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /opt
WP-CLI packages dir:
WP-CLI cache dir: /home/stevee/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.7.1

sudo chmod +x wp-cli.phar

sudo mv wp-cli.phar /usr/local/bin/wp

cd /usr/share/wordpress/

wp core version
5.8.3

wp core version --allow-root

----------------------------------------------------------------------

Below is a listing of all currently available WP-CLI commands with links to documentation on usage and subcommands.

Looking to learn more about the internal API of WP-CLI or to contribute to its development? Check out the WP-CLI team’s handbook.

Command Description
wp admin
Open /wp-admin/ in a browser.

wp cache
Adds, removes, fetches, and flushes the WP Object Cache object.

wp cap
Adds, removes, and lists capabilities of a user role.

wp cli
Reviews current WP-CLI info, checks for updates, or views defined aliases.

wp comment
Creates, updates, deletes, and moderates comments.

wp config
Generates and reads the wp-config.php file.

wp core
Downloads, installs, updates, and manages a WordPress installation.

wp cron
Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.

wp db
Performs basic database operations using credentials stored in wp-config.php.
wp db check --dbuser=stevee --dbpass=xxx
wp db clean --dbuser=stevee --dbpass=xxx(drops tables!)
wp db repair --dbuser=stevee --dbpass=xxx
wp db export /var/www/ESFile --dbuser=xxx--dbpass=poop

ElectronicsStuff.wp_xubg_commentmeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_comments
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_links
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_options
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_postmeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_posts
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_term_relationships
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_term_taxonomy
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_termmeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_terms
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_usermeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_users
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wpnt_commentmeta OK
ElectronicsStuff.wpnt_comments OK
ElectronicsStuff.wpnt_links OK
ElectronicsStuff.wpnt_options OK
ElectronicsStuff.wpnt_postmeta OK
ElectronicsStuff.wpnt_posts OK
ElectronicsStuff.wpnt_term_relationships OK
ElectronicsStuff.wpnt_term_taxonomy OK
ElectronicsStuff.wpnt_termmeta OK
ElectronicsStuff.wpnt_terms OK
ElectronicsStuff.wpnt_usermeta OK
ElectronicsStuff.wpnt_users OK
ElectronicsStuff.wpnt_wprss_logs OK
Success: Database repaired.

(didnt fix pics issue though!)

wp dist-archive
Create a distribution archive based on a project’s .distignore file.

wp embed
Inspects oEmbed providers, clears embed cache, and more.

wp eval
Executes arbitrary PHP code.

wp eval-file
Loads and executes a PHP file.

wp export
Exports WordPress content to a WXR file.

wp help
Gets help on WP-CLI, or on a specific command.

wp i18n
Provides internationalization tools for WordPress projects.

wp import
Imports content from a given WXR file.

wp language
Installs, activates, and manages language packs.

wp maintenance-mode
Activates, deactivates or checks the status of the maintenance mode of a site.

wp media
Imports files as attachments, regenerates thumbnails, or lists registered image sizes.

wp menu
Lists, creates, assigns, and deletes the active theme’s navigation menus.

wp network
Perform network-wide operations.

wp option
Retrieves and sets site options, including plugin and WordPress settings.

wp package
Lists, installs, and removes WP-CLI packages.

wp plugin
Manages plugins, including installs, activations, and updates.

wp post
Manages posts, content, and meta.

wp post-type
Retrieves details on the site’s registered post types.

wp profile
wp rewrite
Lists or flushes the site’s rewrite rules, updates the permalink structure.

wp role
Manages user roles, including creating new roles and resetting to defaults.

wp scaffold
Generates code for post types, taxonomies, plugins, child themes, etc.

wp search-replace
Searches/replaces strings in the database.

wp server
Launches PHP’s built-in web server for a specific WordPress installation.

wp shell
Opens an interactive PHP console for running and testing PHP code.

wp sidebar
Lists registered sidebars.

wp site
Creates, deletes, empties, moderates, and lists one or more sites on a multisite installation.

wp super-admin
Lists, adds, or removes super admin users on a multisite installation.

wp taxonomy
Retrieves information about registered taxonomies.

wp term
Manages taxonomy terms and term meta, with create, delete, and list commands.

wp theme
Manages themes, including installs, activations, and updates.

wp transient
Adds, gets, and deletes entries in the WordPress Transient Cache.

wp user
Manages users, along with their roles, capabilities, and meta.

wp widget
Manages widgets, including adding and moving them within sidebars.
-----------------------------------------------------------------------

wp media regenerate
wp media regenerate --yes

Warning: Can't find "052412_1712_SilverSynth11.png" (ID 264).
Warning: Can't find "052412_1712_SilverSynth10.jpg" (ID 263).
Warning: Can't find "052412_1712_SilverSynth9.png" (ID 262).
Warning: Can't find "052412_1712_SilverSynth8.png" (ID 261).
Warning: Can't find "052412_1712_SilverSynth7.jpg" (ID 260).
Warning: Can't find "052412_1712_SilverSynth6.png" (ID 259).
Warning: Can't find "052412_1712_SilverSynth5.jpg" (ID 258).
Warning: Can't find "052412_1712_SilverSynth4.png" (ID 257).
Warning: Can't find "052412_1712_SilverSynth3.jpg" (ID 256).
Warning: Can't find "052412_1712_SilverSynth2.jpg" (ID 255).
Warning: Can't find "052412_1712_SilverSynth1.png" (ID 254).
Warning: Can't find "052412_1708_SilverSynth21.png" (ID 251).
Warning: Can't find "052412_1708_SilverSynth20.png" (ID 250).
Warning: Can't find "052412_1708_SilverSynth19.png" (ID 249).
Warning: Can't find "052412_1708_SilverSynth18.png" (ID 248).
Warning: Can't find "052412_1708_SilverSynth17.jpg" (ID 247).
Warning: Can't find "052412_1708_SilverSynth16.png" (ID 246).
Warning: Can't find "052412_1708_SilverSynth15.png" (ID 245).
Warning: Can't find "052412_1708_SilverSynth14.png" (ID 244).
Warning: Can't find "052412_1708_SilverSynth13.png" (ID 243).
Warning: Can't find "052412_1708_SilverSynth12.png" (ID 242).
Warning: Can't find "052412_1708_SilverSynth11.png" (ID 241).
Warning: Can't find "052412_1708_SilverSynth10.jpg" (ID 240).
Warning: Can't find "052412_1708_SilverSynth9.png" (ID 239).
Warning: Can't find "052412_1708_SilverSynth8.png" (ID 238).
Warning: Can't find "052412_1708_SilverSynth7.jpg" (ID 237).
Warning: Can't find "052412_1708_SilverSynth6.png" (ID 236).
Warning: Can't find "052412_1708_SilverSynth5.jpg" (ID 235).
Warning: Can't find "052412_1708_SilverSynth4.png" (ID 234).
Warning: Can't find "052412_1708_SilverSynth3.jpg" (ID 233).
Warning: Can't find "052412_1708_SilverSynth2.jpg" (ID 232).
Warning: Can't find "052412_1708_SilverSynth1.png" (ID 231).
Warning: Can't find "052412_1703_SilverSynth1.png" (ID 229).
Warning: Can't find "052412_1702_SilverSynth5.jpg" (ID 228).
Warning: Can't find "052412_1702_SilverSynth3.jpg" (ID 226).
Warning: Can't find "052412_1702_SilverSynth2.jpg" (ID 225).
Warning: Can't find "052412_1702_SilverSynth1.png" (ID 224).
Warning: Can't find "HipHopV3" (ID 191).
Warning: Can't find "DanceCPanel.jpg" (ID 189).
Warning: Can't find "SteveCopperMinorSquare.jpg" (ID 172).
Warning: Can't find "SteveCopperMaj.jpg" (ID 168).
Warning: Can't find "SteveCopperMaj.jpg" (ID 163).
Warning: Can't find "SteveCopperMaj.jpg" (ID 161).
Warning: Can't find "MMDX11.jpg" (ID 28).
Warning: Can't find "MyEye.jpg" (ID 15).

This will be because these files are not in the ES folder, as these DB tables should not be in ES or the wp_ ones.
Once wp_ changed to wp_xubg :

stevee@localhost:/usr/share/wordpress$ wp media regenerate --yes
Found 158 images to regenerate.
Warning: Can't find "10_4Z.png" (ID 9752).
Warning: Can't find "DiodesAdd.png" (ID 9748).
Warning: Can't find "15VZ.png" (ID 9741).
Warning: Can't find "13Vout.png" (ID 9735).
Warning: Can't find "2200Ohm.png" (ID 9730).
Warning: Can't find "noload.png" (ID 9726).
Warning: Can't find "charger3.png" (ID 9724).
Warning: Can't find "charger2.png" (ID 9722).
Warning: Can't find "spicecharger.png" (ID 9719).
Warning: Can't find "Pins.jpg" (ID 9709).
Warning: Can't find "UnrectAC,jpg" (ID 9708).
Warning: Can't find "UnrectDC" (ID 9707).
Warning: Can't find "DC.jpg" (ID 9706).
Warning: Can't find "Chassis.jpg" (ID 9698).
Warning: Can't find "3rdOrder.jpg" (ID 9676).
Warning: Can't find "2ndorder.jpg" (ID 9672).
Warning: Can't find "IMG_20210118_200757196.jpg" (ID 9671).
Warning: Can't find "THD.jpg" (ID 9668).
Warning: Can't find "MCLgen.jpg" (ID 9664).
Warning: Can't find "X840OP2.jpg" (ID 9660).
Warning: Can't find "1kHzGen.jpg" (ID 9659).
Warning: Can't find "X840OP.jpg" (ID 9657).
Warning: Can't find "sine2,png" (ID 9639).
Warning: Can't find "sine.png" (ID 9635).
Warning: Can't find "14051Bpins.png" (ID 9619).
Warning: Can't find "4051pins.png" (ID 9618).
Warning: Can't find "14vpower.png" (ID 9617).
Warning: Can't find "IMG_20210109_170041015" (ID 9612).
Warning: Can't find "IMG_20210109_170036030" (ID 9611).
Warning: Can't find "840pecs.png" (ID 9607).
Warning: Can't find "svi3102pins.png" (ID 9603).
Warning: Can't find "delay.png" (ID 9588).
Warning: Can't find "su600knob.png" (ID 9580).
Warning: Can't find "specs.png" (ID 9578).
Warning: Can't find "switches.png" (ID 9572).
Warning: Can't find "RemoteCaps.png" (ID 9569).
Warning: Can't find "svi.png" (ID 9568).
Warning: Can't find "svi3102inputs.png" (ID 9566).
Warning: Can't find "specs.png" (ID 9558).
Warning: Can't find "front.png" (ID 9554).
Warning: Can't find "trans.png" (ID 9550).
Warning: Can't find "pin10.png" (ID 9547).
Warning: Can't find "SonyEX50.png" (ID 9540).
Warning: Can't find "FenderTone.png" (ID 9528).
Warning: Can't find "MarshalTone" (ID 9529).
Warning: Can't find "IMG_20200901_181120444" (ID 9518).
Warning: Can't find "Calx.png" (ID 9517).
Warning: Can't find "Calx.png" (ID 9510).
Warning: Can't find "cct.png" (ID 9495).
Warning: Can't find "ua741.pdf" (ID 9491).
Warning: Can't find "tl022.pdf" (ID 9490).
Warning: Can't find "MN3101.pdf" (ID 9489).
Warning: Can't find "Chorus.jpg" (ID 9488).
Warning: Can't find "MC14007UB-D.pdf" (ID 9485).
Warning: Can't find "LM13600.pdf" (ID 9484).
Warning: Can't find "lm1458.pdf" (ID 9483).
Warning: Can't find "DODFilter.jpg" (ID 9480).
Warning: Can't find "PreheatDrive" (ID 9473).
Warning: Can't find "IMG_20200819_171206514_BURST000_COVER_TOP" (ID 9470).
Warning: Can't find "specs" (ID 9471).
Warning: Can't find "IMG_20200819_171132482_HDR" (ID 9469).
Warning: Can't find "IMG_20200819_171118831_BURST000_COVER_TOP" (ID 9468).
Warning: Can't find "808spec.png" (ID 9461).
Warning: Can't find "IMG_20200814_213938761" (ID 9460).
Warning: Can't find "IMG_20200814_213115465" (ID 9459).
Warning: Can't find "IMG_20200814_213103039" (ID 9458).
Warning: Can't find "IMG_20200813_224328992" (ID 9443).
Warning: Can't find "Specs" (ID 9440).
Warning: Can't find "Specs840" (ID 9439).
Warning: Can't find "IMG_20200814_092423229" (ID 9435).
Warning: Can't find "IMG_20200814_091816282" (ID 9434).
Warning: Can't find "IMG_20200814_091801335" (ID 9433).
Warning: Can't find "IMG_20200813_221651336" (ID 9423).
Warning: Can't find "IMG_20200813_221639003_HDR" (ID 9422).
Warning: Can't find "BW.png" (ID 9418).
Warning: Can't find "3880.pdf" (ID 9362).
Warning: Can't find "IMG_20200728_134000895" (ID 9356).
Warning: Can't find "IMG_20200728_134008065" (ID 9355).
Warning: Can't find "IMG_20200728_134025788" (ID 9354).
Warning: Can't find "IMG_20200728_134735831" (ID 9353).
Warning: Can't find "IMG_20200728_133850848" (ID 9352).
Warning: Can't find "IMG_20200804_113028610" (ID 9349).
Warning: Can't find "IMG_20200804_200801544" (ID 9341).
Warning: Can't find "IMG_20200804_200837538" (ID 9340).
Warning: Can't find "IMG_20200726_143139085" (ID 9322).
Warning: Can't find "IMG_20200726_142248167" (ID 9321).
Warning: Can't find "IMG_20200726_104427960" (ID 9320).
Warning: Can't find "IMG_20200626_215627585" (ID 9313).
Warning: Can't find "IMG_20200626_215602304" (ID 9312).
Warning: Can't find "wienosc.png" (ID 9308).
Warning: Can't find "IMG_20200626_203754102" (ID 9307).
Warning: Can't find "741test.jpg" (ID 9279).
Warning: Can't find "Short.png" (ID 9257).
Warning: Can't find "IMG_20200524_160307468" (ID 9184).
Warning: Can't find "IMG_20200524_153612168" (ID 9183).
Warning: Can't find "IMG_20200517_184001425" (ID 9115).
Warning: Can't find "IMG_20200510_120039421" (ID 9083).
Warning: Can't find "hfe_technics_su-x840_service.pdf" (ID 9074).
Warning: Can't find "stktest.png" (ID 8991).
Warning: Can't find "stk.png" (ID 8988).
Warning: Can't find "limiter.png" (ID 8982).
Warning: Can't find "stepcct.png" (ID 8975).
Warning: Can't find "steps.png" (ID 8973).
Warning: Can't find "stnlid.png" (ID 8963).
Warning: Can't find "bits.png" (ID 8962).
Warning: Can't find "16mhz.png" (ID 8948).
Warning: Can't find "colpittsosc.png" (ID 8944).
Warning: Can't find "ramposc.png" (ID 8940).
Warning: Can't find "sawgen.png" (ID 8936).
Warning: Can't find "vcolm358.png" (ID 8930).
Warning: Can't find "lm2904vco.png" (ID 8927).
Warning: Can't find "capcharge.png" (ID 8921).
Warning: Can't find "capaddition.png" (ID 8920).
Warning: Can't find "FR100k.png" (ID 8912).
Warning: Can't find "741maxspecs.png" (ID 8909).
Warning: Can't find "741gain5.png" (ID 8907).
Warning: Can't find "tl082cctsame.png" (ID 8902).
Warning: Can't find "tlo82cn op amp.png" (ID 8901).
Warning: Can't find "5gaincct.png" (ID 8899).
Warning: Can't find "5gcct.png" (ID 8898).
Warning: Can't find "5gain.png" (ID 8896).
Warning: Can't find "railsplitter.png" (ID 8894).
Warning: Can't find "railsplitter.png" (ID 8893).
Warning: Can't find "led.png" (ID 8890).
Warning: Can't find "ledrect.png" (ID 8886).
Warning: Can't find "led rect.png" (ID 8882).
Warning: Can't find "astab5vtimer.png" (ID 8878).
Warning: Can't find "astablepdf.png" (ID 8877).
Warning: Can't find "555int.png" (ID 8875).
Warning: Can't find "555-Astable-Circuit-Diagram.gif" (ID 8873).
Warning: Can't find "lm2904vco.png" (ID 8870).
Warning: Can't find "lm738.png" (ID 8867).
Warning: Can't find "741pin.png" (ID 8864).
Warning: Can't find "Kentinger.png" (ID 8848).
Warning: Can't find "ltpcap.png" (ID 8755).
Warning: Can't find "ltp.png" (ID 8751).
Warning: Can't find "Splitclipps.png" (ID 8746).
Warning: Can't find "splitter.png" (ID 8745).
Warning: Can't find "trigsq.png" (ID 8744).
Warning: Can't find "trig5v.png" (ID 8743).
Warning: Can't find "trig.png" (ID 8742).
Warning: Can't find "shmitt.png" (ID 8741).
Warning: Can't find "comemit" (ID 8740).
Warning: Can't find "300px-16MHZ_Crystal" (ID 8739).
Warning: Can't find "51-C5nPEF1L" (ID 8738).
Warning: Can't find "astable" (ID 8737).
Warning: Can't find "IRcons" (ID 8680).
Warning: Can't find "simpleosc" (ID 8671).
Warning: Can't find "Xtal" (ID 8631).
Warning: Can't find "12cpins" (ID 8603).
Warning: Can't find "12cbus" (ID 8598).
Warning: Can't find "aerial" (ID 8492).
Warning: Can't find "XR2206Gen" (ID 8482).
Warning: Can't find "Lysig" (ID 8479).
Warning: Can't find "DECGPSOUT" (ID 8472).
Warning: Can't find "FG100Gen" (ID 8066).
Warning: Can't find "XR2206Gen" (ID 8064).
Warning: Can't find "Lysig" (ID 8062).
Error: No images regenerated (158 failed).

changed to wpnt_

stevee@localhost:/usr/share/wordpress$ wp media regenerate --yes
Found 29 images to regenerate.
Warning: Can't find "gpsceramic" (ID 8437).
Warning: Can't find "aerial" (ID 8427).
Warning: Can't find "nanopins" (ID 8350).
Warning: Can't find "2rigs" (ID 8339).
Warning: Can't find "newnanolcd" (ID 8332).
Warning: Can't find "Vantage Pro2" (ID 8323).
Warning: Can't find "bmpcalc" (ID 8320).
Warning: Can't find "AltMe" (ID 8313).
Warning: Can't find "DHT11_BMP180SERIAL" (ID 8308).
Warning: Can't find "DHT11_BMP180SERIAL" (ID 8307).
Warning: Can't find "DHT11–Temperature-Sensor-Pinout" (ID 8300).
Warning: Can't find "DHT11tempshum" (ID 8298).
Warning: Can't find "BMP180ser" (ID 8292).
Warning: Can't find "DHT11 temp" (ID 8290).
Warning: Can't find "BMP180 Datasheet V2.5" (ID 8284).
Warning: Can't find "DHT11tempshum" (ID 8280).
Warning: Can't find "DHT11-Datasheet" (ID 8275).
Warning: Can't find "timesatslatlong" (ID 8248).
Warning: Can't find "LCDSatclock" (ID 8243).
Warning: Can't find "gpsinlcd" (ID 8237).
Warning: Can't find "gpsinlcd" (ID 8236).
Warning: Can't find "satellite-constellations" (ID 8232).
Warning: Can't find "myloc" (ID 8223).
Warning: Can't find "gpslocdata" (ID 8220).
Warning: Can't find "arduino-to-gps-diagram-gps-tutorial" (ID 8217).
Warning: Can't find "arduino-as-serial-to-usb-to-gps-diagram-gps-tutorial" (ID 8215).
Warning: Can't find "LCDpins" (ID 8213).
Warning: Can't find "Uno pins" (ID 8209).
Warning: Can't find "Stn" (ID 8206).
Error: No images regenerated (29 failed).

stevee@localhost:/usr/share/wordpress$ wp media regenerate
PHP Warning: Undefined array key "HTTP_HOST" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 10
Neither <b>/etc/wordpress/config-.php</b> nor <b>/etc/wordpress/config-.php</b> could be found. <br/> Ensure one of them exists, is readable by the webserver and contains the right password/username.stevee@localhost:/usr/share/wordpress$

stevee@localhost:/usr/share/wordpress$ ls -la
total 224
drwxr-xr-x 5 root root 4096 Sep 4 10:02 .
drwxr-xr-x 374 root root 12288 Nov 16 19:50 ..
lrwxrwxrwx 1 root root 23 Jan 11 2022 .htaccess -> /etc/wordpress/htaccess
-rw-r--r-- 1 root root 405 Feb 6 2020 index.php
-rw-r--r-- 1 root root 7389 Jan 11 2022 readme.html
-rw-r--r-- 1 root root 7565 Jan 11 2022 wp-activate.php
drwxr-xr-x 9 root root 4096 Sep 4 10:02 wp-admin
-rw-r--r-- 1 root root 351 Feb 6 2020 wp-blog-header.php
-rw-r--r-- 1 root root 2328 Feb 17 2021 wp-comments-post.php
-rw-r--r-- 1 root root 2543 Jan 7 2022 wp-config.php
-rw-r--r-- 1 root root 3004 May 21 2021 wp-config-sample.php
drwxr-xr-x 5 root root 4096 Sep 4 10:02 wp-content
-rw-r--r-- 1 root root 3939 Jul 30 2020 wp-cron.php
drwxr-xr-x 25 root root 20480 Sep 4 10:02 wp-includes
-rw-r--r-- 1 root root 2496 Feb 6 2020 wp-links-opml.php
-rw-r--r-- 1 root root 3900 May 15 2021 wp-load.php
-rw-r--r-- 1 root root 45463 Apr 6 2021 wp-login.php
-rw-r--r-- 1 root root 8509 Apr 14 2020 wp-mail.php
-rw-r--r-- 1 root root 22297 Jun 2 2021 wp-settings.php
-rw-r--r-- 1 root root 31693 May 7 2021 wp-signup.php
-rw-r--r-- 1 root root 4747 Oct 8 2020 wp-trackback.php
-rw-r--r-- 1 root root 3236 Jun 8 2020 xmlrpc.php

 

mysql -u stevee -p

show databases ;

use ElectronicsStuff ;

Find DB collation:
SELECT @@character_set_database, @@collation_database;

and for Engine:
SHOW TABLE STATUS\G

Diff Engines are not a prob in same DB.

GRANT ALL PRIVILEGES ON ElectronicsStuff TO stevee@localhost IDENTIFIED BY xxx;

SHOW GRANTS FOR 'stevee'@'localhost';

systemctl restart mysql.service

mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'PASSWORD';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;

ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';

mysql> show tables ;
+----------------------------+
| Tables_in_ElectronicsStuff |
+----------------------------+
| wp_Counterize |
| wp_Counterize_Countries |
| wp_Counterize_Keywords |
| wp_Counterize_Outlinks |
| wp_Counterize_Pages |
| wp_Counterize_Referers |
| wp_Counterize_UserAgents |
| wp_commentmeta |
| wp_comments |
| wp_edd_customermeta |
| wp_edd_customers |
| wp_links |
| wp_options |
| wp_postmeta |
| wp_posts |
| wp_term_relationships |
| wp_term_taxonomy |
| wp_termmeta |
| wp_terms |
| wp_usermeta |
| wp_users |
| wp_xubg_commentmeta |
| wp_xubg_comments |
| wp_xubg_links |
| wp_xubg_options |
| wp_xubg_postmeta |
| wp_xubg_posts |
| wp_xubg_term_relationships |
| wp_xubg_term_taxonomy |
| wp_xubg_termmeta |
| wp_xubg_terms |
| wp_xubg_usermeta |
| wp_xubg_users |
| wpnt_commentmeta |
| wpnt_comments |
| wpnt_links |
| wpnt_options |
| wpnt_postmeta |
| wpnt_posts |
| wpnt_term_relationships |
| wpnt_term_taxonomy |
| wpnt_termmeta |
| wpnt_terms |
| wpnt_usermeta |
| wpnt_users |
| wpnt_wprss_logs |
+----------------------------+

stevee@localhost:/var/www/ElectronicsStuff$ mysqlcheck -c ElectronicsStuff -u stevee -p
Enter password:
ElectronicsStuff.wp_Counterize OK
ElectronicsStuff.wp_Counterize_Countries OK
ElectronicsStuff.wp_Counterize_Keywords OK
ElectronicsStuff.wp_Counterize_Outlinks OK
ElectronicsStuff.wp_Counterize_Pages OK
ElectronicsStuff.wp_Counterize_Referers OK
ElectronicsStuff.wp_Counterize_UserAgents OK
ElectronicsStuff.wp_commentmeta OK
ElectronicsStuff.wp_comments OK
ElectronicsStuff.wp_edd_customermeta OK
ElectronicsStuff.wp_edd_customers OK
ElectronicsStuff.wp_links OK
ElectronicsStuff.wp_options OK
ElectronicsStuff.wp_postmeta OK
ElectronicsStuff.wp_posts OK
ElectronicsStuff.wp_term_relationships OK
ElectronicsStuff.wp_term_taxonomy OK
ElectronicsStuff.wp_termmeta OK
ElectronicsStuff.wp_terms OK
ElectronicsStuff.wp_usermeta OK
ElectronicsStuff.wp_users OK
ElectronicsStuff.wp_xubg_commentmeta OK
ElectronicsStuff.wp_xubg_comments OK
ElectronicsStuff.wp_xubg_links OK
ElectronicsStuff.wp_xubg_options OK
ElectronicsStuff.wp_xubg_postmeta OK
ElectronicsStuff.wp_xubg_posts OK
ElectronicsStuff.wp_xubg_term_relationships OK
ElectronicsStuff.wp_xubg_term_taxonomy OK
ElectronicsStuff.wp_xubg_termmeta OK
ElectronicsStuff.wp_xubg_terms OK
ElectronicsStuff.wp_xubg_usermeta OK
ElectronicsStuff.wp_xubg_users OK
ElectronicsStuff.wpnt_commentmeta OK
ElectronicsStuff.wpnt_comments OK
ElectronicsStuff.wpnt_links OK
ElectronicsStuff.wpnt_options OK
ElectronicsStuff.wpnt_postmeta OK
ElectronicsStuff.wpnt_posts OK
ElectronicsStuff.wpnt_term_relationships OK
ElectronicsStuff.wpnt_term_taxonomy OK
ElectronicsStuff.wpnt_termmeta OK
ElectronicsStuff.wpnt_terms OK
ElectronicsStuff.wpnt_usermeta OK
ElectronicsStuff.wpnt_users OK
ElectronicsStuff.wpnt_wprss_logs OK

stevee@localhost:/var/www/ElectronicsStuff$ mysqlcheck -c -u stevee -p --all-databases
Enter password:
DebianAdmin.wp_xubg_commentmeta OK
DebianAdmin.wp_xubg_comments OK
DebianAdmin.wp_xubg_ewwwio_images OK
DebianAdmin.wp_xubg_ewwwio_queue OK
DebianAdmin.wp_xubg_links OK
DebianAdmin.wp_xubg_options OK
DebianAdmin.wp_xubg_postmeta OK
DebianAdmin.wp_xubg_posts OK
DebianAdmin.wp_xubg_pvc_daily OK
DebianAdmin.wp_xubg_pvc_total OK
DebianAdmin.wp_xubg_snippets OK
DebianAdmin.wp_xubg_term_relationships OK
DebianAdmin.wp_xubg_term_taxonomy OK
DebianAdmin.wp_xubg_termmeta OK
DebianAdmin.wp_xubg_terms OK
DebianAdmin.wp_xubg_usermeta OK
DebianAdmin.wp_xubg_users OK
ElectronicsStuff.wp_Counterize OK
ElectronicsStuff.wp_Counterize_Countries OK
ElectronicsStuff.wp_Counterize_Keywords OK
ElectronicsStuff.wp_Counterize_Outlinks OK
ElectronicsStuff.wp_Counterize_Pages OK
ElectronicsStuff.wp_Counterize_Referers OK
ElectronicsStuff.wp_Counterize_UserAgents OK
ElectronicsStuff.wp_commentmeta OK
ElectronicsStuff.wp_comments OK
ElectronicsStuff.wp_edd_customermeta OK
ElectronicsStuff.wp_edd_customers OK
ElectronicsStuff.wp_links OK
ElectronicsStuff.wp_options OK
ElectronicsStuff.wp_postmeta OK
ElectronicsStuff.wp_posts OK
ElectronicsStuff.wp_term_relationships OK
ElectronicsStuff.wp_term_taxonomy OK
ElectronicsStuff.wp_termmeta OK
ElectronicsStuff.wp_terms OK
ElectronicsStuff.wp_usermeta OK
ElectronicsStuff.wp_users OK
ElectronicsStuff.wp_xubg_commentmeta OK
ElectronicsStuff.wp_xubg_comments OK
ElectronicsStuff.wp_xubg_links OK
ElectronicsStuff.wp_xubg_options OK
ElectronicsStuff.wp_xubg_postmeta OK
ElectronicsStuff.wp_xubg_posts OK
ElectronicsStuff.wp_xubg_term_relationships OK
ElectronicsStuff.wp_xubg_term_taxonomy OK
ElectronicsStuff.wp_xubg_termmeta OK
ElectronicsStuff.wp_xubg_terms OK
ElectronicsStuff.wp_xubg_usermeta OK
ElectronicsStuff.wp_xubg_users OK
ElectronicsStuff.wpnt_commentmeta OK
ElectronicsStuff.wpnt_comments OK
ElectronicsStuff.wpnt_links OK
ElectronicsStuff.wpnt_options OK
ElectronicsStuff.wpnt_postmeta OK
ElectronicsStuff.wpnt_posts OK
ElectronicsStuff.wpnt_term_relationships OK
ElectronicsStuff.wpnt_term_taxonomy OK
ElectronicsStuff.wpnt_termmeta OK
ElectronicsStuff.wpnt_terms OK
ElectronicsStuff.wpnt_usermeta OK
ElectronicsStuff.wpnt_users OK
ElectronicsStuff.wpnt_wprss_logs OK
myphpsite.text OK
mysql.columns_priv OK
mysql.component OK
mysql.db OK
mysql.default_roles OK
mysql.engine_cost OK
mysql.func OK
mysql.general_log OK
mysql.global_grants OK
mysql.gtid_executed OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.innodb_index_stats OK
mysql.innodb_table_stats OK
mysql.password_history OK
mysql.plugin OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.replication_asynchronous_connection_failover OK
mysql.replication_asynchronous_connection_failover_managed OK
mysql.replication_group_configuration_version OK
mysql.replication_group_member_actions OK
mysql.role_edges OK
mysql.server_cost OK
mysql.servers OK
mysql.slave_master_info OK
mysql.slave_relay_log_info OK
mysql.slave_worker_info OK
mysql.slow_log OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
phpmyadmin.pma__bookmark OK
phpmyadmin.pma__central_columns OK
phpmyadmin.pma__column_info OK
phpmyadmin.pma__designer_settings OK
phpmyadmin.pma__export_templates OK
phpmyadmin.pma__favorite OK
phpmyadmin.pma__history OK
phpmyadmin.pma__navigationhiding OK
phpmyadmin.pma__pdf_pages OK
phpmyadmin.pma__recent OK
phpmyadmin.pma__relation OK
phpmyadmin.pma__savedsearches OK
phpmyadmin.pma__table_coords OK
phpmyadmin.pma__table_info OK
phpmyadmin.pma__table_uiprefs OK
phpmyadmin.pma__tracking OK
phpmyadmin.pma__userconfig OK
phpmyadmin.pma__usergroups OK
phpmyadmin.pma__users OK
sys.sys_config OK
text.sometext

stevee@localhost:/var/www/ElectronicsStuff$ mysqlcheck -a ElectronicsStuff -u stevee -p
Enter password:
ElectronicsStuff.wp_Counterize Table is already up to date
ElectronicsStuff.wp_Counterize_Countries Table is already up to date
ElectronicsStuff.wp_Counterize_Keywords Table is already up to date
ElectronicsStuff.wp_Counterize_Outlinks Table is already up to date
ElectronicsStuff.wp_Counterize_Pages Table is already up to date
ElectronicsStuff.wp_Counterize_Referers Table is already up to date
ElectronicsStuff.wp_Counterize_UserAgents Table is already up to date
ElectronicsStuff.wp_commentmeta Table is already up to date
ElectronicsStuff.wp_comments Table is already up to date
ElectronicsStuff.wp_edd_customermeta Table is already up to date
ElectronicsStuff.wp_edd_customers Table is already up to date
ElectronicsStuff.wp_links Table is already up to date
ElectronicsStuff.wp_options Table is already up to date
ElectronicsStuff.wp_postmeta Table is already up to date
ElectronicsStuff.wp_posts Table is already up to date
ElectronicsStuff.wp_term_relationships Table is already up to date
ElectronicsStuff.wp_term_taxonomy Table is already up to date
ElectronicsStuff.wp_termmeta Table is already up to date
ElectronicsStuff.wp_terms Table is already up to date
ElectronicsStuff.wp_usermeta Table is already up to date
ElectronicsStuff.wp_users Table is already up to date
ElectronicsStuff.wp_xubg_commentmeta OK
ElectronicsStuff.wp_xubg_comments OK
ElectronicsStuff.wp_xubg_links OK
ElectronicsStuff.wp_xubg_options OK
ElectronicsStuff.wp_xubg_postmeta OK
ElectronicsStuff.wp_xubg_posts OK
ElectronicsStuff.wp_xubg_term_relationships OK
ElectronicsStuff.wp_xubg_term_taxonomy OK
ElectronicsStuff.wp_xubg_termmeta OK
ElectronicsStuff.wp_xubg_terms OK
ElectronicsStuff.wp_xubg_usermeta OK
ElectronicsStuff.wp_xubg_users OK
ElectronicsStuff.wpnt_commentmeta Table is already up to date
ElectronicsStuff.wpnt_comments Table is already up to date
ElectronicsStuff.wpnt_links Table is already up to date
ElectronicsStuff.wpnt_options Table is already up to date
ElectronicsStuff.wpnt_postmeta Table is already up to date
ElectronicsStuff.wpnt_posts Table is already up to date
ElectronicsStuff.wpnt_term_relationships Table is already up to date
ElectronicsStuff.wpnt_term_taxonomy Table is already up to date
ElectronicsStuff.wpnt_termmeta Table is already up to date
ElectronicsStuff.wpnt_terms Table is already up to date
ElectronicsStuff.wpnt_usermeta Table is already up to date
ElectronicsStuff.wpnt_users Table is already up to date
ElectronicsStuff.wpnt_wprss_logs Table is already up to date

OPTIMISE - shows FAULT:
stevee@localhost:/var/www/ElectronicsStuff$ mysqlcheck -o ElectronicsStuff -u stevee -p
Enter password:
ElectronicsStuff.wp_Counterize OK
ElectronicsStuff.wp_Counterize_Countries OK
ElectronicsStuff.wp_Counterize_Keywords OK
ElectronicsStuff.wp_Counterize_Outlinks OK
ElectronicsStuff.wp_Counterize_Pages OK
ElectronicsStuff.wp_Counterize_Referers OK
ElectronicsStuff.wp_Counterize_UserAgents OK
ElectronicsStuff.wp_commentmeta OK
ElectronicsStuff.wp_comments OK
ElectronicsStuff.wp_edd_customermeta OK
ElectronicsStuff.wp_edd_customers OK
ElectronicsStuff.wp_links OK
ElectronicsStuff.wp_options OK
ElectronicsStuff.wp_postmeta OK
ElectronicsStuff.wp_posts OK
ElectronicsStuff.wp_term_relationships OK
ElectronicsStuff.wp_term_taxonomy OK
ElectronicsStuff.wp_termmeta OK
ElectronicsStuff.wp_terms OK
ElectronicsStuff.wp_usermeta OK
ElectronicsStuff.wp_users OK
ElectronicsStuff.wp_xubg_commentmeta
note : Table does not support optimize, doing recreate + analyze instead
status : OK
ElectronicsStuff.wp_xubg_comments
note : Table does not support optimize, doing recreate + analyze instead
error : Invalid default value for 'comment_date'
status : Operation failed
ElectronicsStuff.wp_xubg_links
note : Table does not support optimize, doing recreate + analyze instead
error : Invalid default value for 'link_updated'
status : Operation failed
ElectronicsStuff.wp_xubg_options
note : Table does not support optimize, doing recreate + analyze instead
status : OK
ElectronicsStuff.wp_xubg_postmeta
note : Table does not support optimize, doing recreate + analyze instead
status : OK
ElectronicsStuff.wp_xubg_posts
note : Table does not support optimize, doing recreate + analyze instead
error : Invalid default value for 'post_date'
status : Operation failed
ElectronicsStuff.wp_xubg_term_relationships
note : Table does not support optimize, doing recreate + analyze instead
status : OK

REPAIR:

stevee@localhost:/var/www/ElectronicsStuff$ mysqlcheck -r ElectronicsStuff -u stevee -p
Enter password:
ElectronicsStuff.wp_Counterize OK
ElectronicsStuff.wp_Counterize_Countries OK
ElectronicsStuff.wp_Counterize_Keywords OK
ElectronicsStuff.wp_Counterize_Outlinks OK
ElectronicsStuff.wp_Counterize_Pages OK
ElectronicsStuff.wp_Counterize_Referers OK
ElectronicsStuff.wp_Counterize_UserAgents OK
ElectronicsStuff.wp_commentmeta OK
ElectronicsStuff.wp_comments OK
ElectronicsStuff.wp_edd_customermeta OK
ElectronicsStuff.wp_edd_customers OK
ElectronicsStuff.wp_links OK
ElectronicsStuff.wp_options OK
ElectronicsStuff.wp_postmeta OK
ElectronicsStuff.wp_posts OK
ElectronicsStuff.wp_term_relationships OK
ElectronicsStuff.wp_term_taxonomy OK
ElectronicsStuff.wp_termmeta OK
ElectronicsStuff.wp_terms OK
ElectronicsStuff.wp_usermeta OK
ElectronicsStuff.wp_users OK
ElectronicsStuff.wp_xubg_commentmeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_comments
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_links
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_options
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_postmeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_posts
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_term_relationships
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_term_taxonomy
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_termmeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_terms
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_usermeta
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wp_xubg_users
note : The storage engine for the table doesn't support repair
ElectronicsStuff.wpnt_commentmeta OK
ElectronicsStuff.wpnt_comments OK
ElectronicsStuff.wpnt_links OK
ElectronicsStuff.wpnt_options OK
ElectronicsStuff.wpnt_postmeta OK
ElectronicsStuff.wpnt_posts OK
ElectronicsStuff.wpnt_term_relationships OK
ElectronicsStuff.wpnt_term_taxonomy OK
ElectronicsStuff.wpnt_termmeta OK
ElectronicsStuff.wpnt_terms OK
ElectronicsStuff.wpnt_usermeta OK
ElectronicsStuff.wpnt_users OK
ElectronicsStuff.wpnt_wprss_logs OK

ALL switches:

-A, –all-databases Consider all the databases
-a, –analyze Analyze tables
-1, –all-in-1 Use one query per database with tables listed in a comma separated way
–auto-repair Repair the table automatically it if is corrupted
-c, –check Check table errors
-C, –check-only-changed Check tables that are changed since last check
-g, –check-upgrade Check for version dependent changes in the tables
-B, –databases Check more than one databases
-F, –fast Check tables that are not closed properly
–fix-db-names Fix DB names
–fix-table-names Fix table names
-f, –force Continue even when there is an error
-e, –extended Perform extended check on a table. This will take a long time to execute.
-m, –medium-check Faster than extended check option, but does most checks
-o, –optimize Optimize tables
-q, –quick Faster than medium check option
-r, –repair Fix the table corruption

mysql> SELECT @@character_set_database, @@collation_database;
+--------------------------+----------------------+
| @@character_set_database | @@collation_database |
+--------------------------+----------------------+
| utf8mb4 | utf8mb4_0900_ai_ci

Missing comma before start of a new alter operation. (near "DEFAULT CHARSET" at position 47)

OK, let’s try this. When displaying the database in phpMyAdmin, you will see a list of tables. One of them is wp_posts. Click on that table, and then click on the “Operations” tab. In the Table Options box, make sure the collation is set to utf8mb4_unicode_520_ci and there is a check in the “Change all column collations” checkbox, then click the “Go” button.