CodeIgniter Forums

Full Version: Database Backup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]agy[/eluser]
There is database backup functionlity present in the dbutil class. Is there a similar functionlity for restoring the database.
If not is there a particular way to restore the database from the backup file in codeigniter ?

El Forum

[eluser]Dam1an[/eluser]
I'm assuming the backup is just an SQL file (a dump of the full database or tables) so the easiest way to restore it is to import it back via PHPMyAdmin

El Forum

[eluser]n0xie[/eluser]
Code:
$ mysql -u USER -p DBNAME < dump.sql