I have a set of MYSQL tables on the development server that I need to place on the production server. How can I “recreate” all of them?
There are triggers present as well (I think). I need to recreate everything.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
mysqldumpto create a dump file that you can feed tomysqlon the target server.To make sure triggers get exported too, use the
--triggersoption. (Although I think those are included by default.)To make sure stored procedures get exported too, use the
--routinesoption. Note that (emphasis mine):