koolphp / koolreport

This is an Open Source PHP Reporting Framework which you can use to write perfect data reports or to construct awesome dashboards using PHP
https://www.koolreport.com/
MIT License
226 stars 66 forks source link

Error in pdoDataSource.php when connecting to database #30

Closed TechNov closed 5 years ago

TechNov commented 5 years ago

Hello All. I'm getting this error when a want to use KoolReport expamples. Fatal error: in xxxx\www\koolreport_and_examples_3.25.4\koolreport\src\datasources\PdoDataSource.php on line 111

My PdoDataSource.php config. protected function onInit() { $connectionString = Util::get($this->params, "connectionString", "mysql:host=localhost;dbname=db_test;port=3306"); $username = Util::get($this->params, "username", "root"); $password = Util::get($this->params, "password", "password"); $charset = Util::get($this->params, "utf8"); those DB params are valid. please help me

koolreport commented 5 years ago

What examples do you try to run? Probably the example requires database installation and you have not install database yet. You can find all database files in the "examples/databases" folder. Please import the database required in example to MySQL.

TechNov commented 5 years ago

Hello. thank, il resolve the probleme by sitting the config.php file in the example folder.