I’ve just developed a large database, and am trying to put it online. I want to make sure that all the foreign keys, defaults, constraints, views etc, are preserved. When I try to export from my development PC using phpMyAdmin and then import on my hosted server, it errors out on all the views. Is there any other way to clone a database?
Share
Yes, there are lots of ways. But I’d strongly recommend using the same vendors import functionality as supplied the export functionality. Do you have access to run mysqldump / mysql at both ends?
OTOH, you may run into file upload limits transferring a large file over HTTP and using PHPMyAdmin. Did you check the export? Have you tried exporting just the relevant database schemas without the application data? Did you export the information schema and mysql databases or just the application database?
You may be a bit premature in deciding that you need to try something esle just because what you tried in PMA failed.
C.