Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/CloudIngenium.com/htdocs/wp-includes/functions.php on line 6114
MySQL: How to list all available tables in the system – Knowledge eXchange

MySQL: How to list all available tables in the system

MySQL: How to list all available tables in the system

Because sometimes you just need to know (the available tables are out there so you can use that list in a script).

If you are running MySQL Workbench you can execute the following SQL Query and export the results to a file:

select table_name from information_schema.tables where table_name like ‘wp_%’

If you are running mysql from a command line you can leverage this to create your output file:

mysql -N information_schema -e “select table_name from tables where table_name like ‘wp_%'” > tables.txt

Then of course you could use your tables.txt file as input for another SQL query.

Enhanced by Zemanta

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.