Welcome Guest, Not a member yet? Register   Sign In
database restore
#1

[eluser]egoslip[/eluser]
Hey guys have to say that I hate Frameworks but this one tops them all off and I have since switched to this as my default work files

I currently ran into an issue tho.

I see there is a class for database back up but is there one for restoring the mysql dump ?

if not

how can I return the database config file var such as database, url, user and pass: so I can run the exec command to use the mysql dump.

I cant seem to find any reference to it in the user doc
#2

[eluser]Dam1an[/eluser]
I personally find it much easier to do the restore via PHPMyAdmin (Or the equivalent for any other database you may use)
If you need to do it via PHP, you can include the database config file, and then just access the variables

Code:
include APPPATH.'config/database.php';
$database = $config['default']['database'];
etc




Theme © iAndrew 2016 - Forum software by © MyBB