![]() |
[SOLVED] Connect to our new Database - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: [SOLVED] Connect to our new Database (/showthread.php?tid=77664) |
[SOLVED] Connect to our new Database - user - 10-01-2020 Hi All, I just tried to create new Database In Documentation, we can create use forge (createDatabase Method) [/url] Quote:Creating and Dropping Databases I was succesfully created Database, but when i want to switch database with forge Quote:Load the Forge Class as follows:And give me error Quote:$this->myforge = \Config\Database::forge('new_other_db');It describe that is not a valid database connection group and we must declare in config/database But in my case, I want to create new database and connect it directly after we createDatabase with forge Which way I can do that? Regards, A ik RE: Connect to our new Database - InsiteFX - 10-01-2020 It goes but your database settings in Config/Database.php group default. |