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?
I'm not a MySQL expert by any means but the following site suggests using the -d or --no-data option of mysqldump:
-d
--no-data
mysqldump -d -h localhost -u root -pmypassword databasename > dumpfile.sql
It worked for me.