I'm trying to make a copy of a database so I can send it as to someone else as a file so they can use the copy. I'm trying to use mysqldump for this, I'm looking at the documentation but I can't get it to work.
I'm just trying to copy a database called test2
right now. In the MySQL command line client I'm doing mysqldump test2 > dump.sql;
I'm getting the error message: You have an error in your SQL suntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqldump test2 > dump.sql' at line 1.
Go on, tell me I'm stupid. I just need some help, please.