We help IT Professionals succeed at work.

MySQL/Linux: Get Table Names from MySQL Dump

skij
skij asked
on
I have a MySQL dump file named: "xyz.sql" that is about 10 gigabytes.  Is there a way to get the names of the tables from the .sql file from the Linux command line without having to download the file or without needing to create a new database?
Comment
Watch Question

Distinguished Expert 2019
Commented:
grep -I 'create table' dump_file |awk ' { print 3$ } '
If you have access to MySQL, run show tables from databasename.