- Messages
- 399
- Reaction score
- 0
- Points
- 26
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2
Try using mysqldump with passthru or system()
then the output would be in the location you set in your mysqldump command.
I haven't tried this with mySQL.
Then I guess the backup-file.sql will be located same sa php file mo.
sir tanong ko lang kung pano mag export ng database using php na di gumagamit ng php myadmin. ung datadump kasi di ko makita kung saan nya nilalagay ung nadudump eh. T_T
Try using mysqldump with passthru or system()
then the output would be in the location you set in your mysqldump command.
Code:
<?php
$command = "mysqldump --opt -h localhost -u root --password=password db_name > backup-file.sql";
passthru($command);
?>
Then I guess the backup-file.sql will be located same sa php file mo.
Last edited: