How To Export/Import Large Database On MAMP

后端 未结 3 788
暖寄归人
暖寄归人 2021-02-11 05:51

How do I export/import large database on MAMP ? Using PHPMyAdmin does not work as it supposed to be.

3条回答
  •  盖世英雄少女心
    2021-02-11 06:36

    It should be done via terminal as below.

    • In the terminal navigate to bin folder of MAMP using below command cd /Applications/MAMP/library/bin
    • Use this command to export the file ./mysqldump -u [USERNAME] -p [DATA_BASENAME] > [PATH_TO_FILE]. EG would be ./mysqldump -u root -p my_database_name > /Applications/MAMP/htdocs/folder_name/exported_db.sql
    • Line should appear saying Enter password:. Here enter the MySQL password. keep in mind that the letters will not appear, but they are there.

    If you need to import use BigDump Which is a MySQL Dump Importer.

提交回复
热议问题