nazgul26 / PHPRecipebook

Cookbook and Meal planning software. Runs on PHP with MySQL/PostgreSQL.
62 stars 39 forks source link

webhost config info? #102

Closed smokinjo closed 3 years ago

smokinjo commented 3 years ago

I moved servers recently, and I need t update PHPRecipeBook.

Which files contain the database and server information?

Once I find the file, what am I looking for ?

Thanks

Joseph

nazgul26 commented 3 years ago

You will want to edit the /Config/database.php file.

Look for this part: class DATABASE_CONFIG {

public $default = array(
    'datasource' => 'Database/Mysql',
    'persistent' => false,
    'host' => 'localhost',
    'login' => 'root',
    'password' => '',
    'database' => 'phprecipebook',
    'prefix' => '',
    //'encoding' => 'utf8',
);

and change it to be your new Db user/password.