Problem with Forge createDatabase |
I'm using CI 4.0.3
I get an exception 'unknown database 'ikl70fxb_TestDB' ' when I try to create a database defined in my default configuration. I can make it work by creating another configuration called 'info' and setting 'database' => 'information_schema' and then passing it to $forge = \Config\Database::forge('info'); This is my database config: PHP Code: public $default = [ This is how how I call it: PHP Code: $forge = \Config\Database::forge(); Any ideas? |
Messages In This Thread |
Problem with Forge createDatabase - by Ken McClain - 06-20-2020, 08:38 AM
RE: Problem with Forge createDatabase - by InsiteFX - 06-21-2020, 03:20 AM
RE: Problem with Forge createDatabase - by Ken McClain - 06-21-2020, 05:15 AM
RE: Problem with Forge createDatabase - by Chroma - 07-30-2021, 04:50 AM
RE: Problem with Forge createDatabase - by paulbalandan - 07-30-2021, 11:16 AM
RE: Problem with Forge createDatabase - by InsiteFX - 07-31-2021, 03:54 AM
|