I need to export a mysql table, but it has like 5gb of entries, so I only want the structure. I am trying to do it from a simple php doing a sql query, how can I do that?
It is already answered in the link below: MySql export schema without data
Use the command below to take the structure or schema dump.
mysqldump -u root -p --no-data dbname > schema.sql