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.
Love
Can we use Let's Encrypt, the free and open certificate authority?
Hola! gracias por la info, me sirvió el comando sacandole el nombre del server. En mi caso, fue una migración…
Yes 3rd option helped me too. I removed the WC key Values from config file then started working.
I know this is from 2014. But really, thank you!