iplaywithfire Posted October 15, 2009 Share Posted October 15, 2009 I looked on the internet and can't find a viable solution... I have a database set up the way I like it (no data in it or anything) - just the database itself along with tables and fields. I need to create a php script that will copy the template database and make a new one. Or Is there a way within phpmyadmin to output the php code necessary to do this? I found that within phpmyadmin if I copy a database it will show the query it used to create it, but it truncates it - not leaving me with the entire code. I just need to create a new database with my given tables and fields without having to go through and code it all myself - either copying it or having phpmyadmin spit out the code would be great! Quote Link to comment https://forums.phpfreaks.com/topic/177807-solved-either-copy-a-database-or-create-one/ Share on other sites More sharing options...
iplaywithfire Posted October 15, 2009 Author Share Posted October 15, 2009 NVM. Just found and started playing with mySQL's export features... it generates a script Quote Link to comment https://forums.phpfreaks.com/topic/177807-solved-either-copy-a-database-or-create-one/#findComment-937595 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.