Exporting MySQL database including stored procedures and triggers

How do I export a mysql database including all related triggers and stored procedures?

I want to make a copy of the entire thing into a new database for testing.

the mysqldump utility will export all tables, data, stored procedures, and triggers.

I tried doing a dump, but it doesn’t export triggers. How do I do this?

what program are you using to do the dump? mysqldump, or phpmyadmin?

I’m using phpmyadmin. Should I use the command line?

I just want the data structure that’s it. Not the data. What should I type?

use mysqldump from the command line with the --no-data and the --triggers options. see http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html