Ok i know this is easy but i have only used mySQL on a limited basis and if things got messed up it would be real bad. But basically i want to duplicate a database in mySQL just the structure with no data in phpmyadmin.
There might be an easier way than the one I'm about to suggest but it probably depends on your permissions within phpmyadmin.
On the main page once you have logged into phpmyadmin, click on 'Export.'
Then highlight the database whose structure you want to copy. Choose 'SQL' underneath that. Then make sure that ONLY 'Structure' checkbox is checked. If anything else is, then uncheck it...especially 'Data.' Click 'Go.'
The output should be valid SQL for you to copy and paste into the SQL textbox on the SQL tab. Before doing so, however, in the output that was generated make sure you change the name of the database you copied to the name you want the new one to have. Example would be if your existing database was called old_db, then:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.