KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Fatal Error SalesByCustomer.php #792

Closed henry opened this topic on on Apr 10, 2019 - 2 comments

henry commented on Apr 10, 2019

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1049] Unknown database 'db_sales'' in C:\xampp\htdocs\jinxiPhp\final project\koolreport\src\datasources\PdoDataSource.php:109 Stack trace: #0 C:\xampp\htdocs\jinxiPhp\final project\koolreport\src\datasources\PdoDataSource.php(109): PDO->construct('mysql:host=loca...', 'root', '') #1 C:\xampp\htdocs\jinxiPhp\final project\koolreport\src\core\DataSource.php(57): koolreport\datasources\PdoDataSource->onInit() #2 C:\xampp\htdocs\jinxiPhp\final project\koolreport\src\KoolReport.php(263): koolreport\core\DataSource->construct(Array, Object(SalesByCustomer)) #3 C:\xampp\htdocs\jinxiPhp\final project\SalesByCustomer.php(25): koolreport\KoolReport->src('sales') #4 C:\xampp\htdocs\jinxiPhp\final project\koolreport\src\KoolReport.php(99): SalesByCustomer->setup() #5 C:\xampp\htdocs\jinxiPhp\final project\index.php(4): koolreport\KoolReport->__construct() #6 {main} thrown in C:\xampp\htdocs\jinxiPhp\final project\koolreport\src\datasources\PdoDataSource.php on line 109

KoolReport commented on Apr 11, 2019

It it simple that you don't have "db_sales" database in your mysql.

henry commented on Apr 11, 2019

thanks for your help, i have solve it by adding a database with some record in it

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None