I want to copy a Database without copying its data, I mean I just want to copy the stucture and tables and foreign key and ... not the data in it. The answer is here but I do not know where should I copy it ? In shell? In workbench? In query? I entered it in query in workbenck and it has error ! Thank you in advance!
Edit
When I run it in my mysql shell I get this:
MySQL JS > mysqldump -u myusername -pmypassword -d olddb | mysql -u myusername -pmypassword -D newdb
SyntaxError: Unexpected identifier.