How to export and import mysql database with its data using php script?

前端 未结 3 1217
鱼传尺愫
鱼传尺愫 2020-12-04 19:09

I was asked to create an export and import mysql database with it\'s structure and data into a .sql file using php scripting and not phpmyadmin to make the user be able to b

3条回答
  •  臣服心动
    2020-12-04 19:15

    Here is a nice class that worked just fine for me. if it says fopen access denied, try to change the folder permissions.

    https://github.com/clouddueling/mysqldump-php

提交回复
热议问题