AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: pvandebe on October 06, 2014, 03:52:19 AM

Title: Migration tool not working : MYSQL class not found
Post by: pvandebe on October 06, 2014, 03:52:19 AM
Hi,

Hope someone can help me. I'm getting this message when having filled in all required fields :

Fatal error: Class 'Mysql' not found in .../admin/controller/pages/tool/migration.php on line 387

mysql.php file exists in core/database

migration.php does not contain any include or require so how do I have to add it (I'm coming from oscommerce 2.2 RC)

Thanks !
Title: Re: Migration tool not working : MYSQL class not found
Post by: abantecart on October 06, 2014, 07:55:48 AM
Open these file for edit.

Locate line 387

Code: [Select]
try {
$connection = new Mysql($this->request->post['db_host'], $this->request->post['db_user'], $this->request->post['db_password'], $this->request->post['db_name'], true);
} catch (AException $e) {


Add below line after try {
Code: [Select]
require_once DIR_DATABASE . 'mysql.php';
Title: Re: Migration tool not working : MYSQL class not found
Post by: pvandebe on October 06, 2014, 08:17:51 AM
Thanks , all fine for this part now  :)
Title: Re: Migration tool not working : MYSQL class not found
Post by: abantecart on October 06, 2014, 08:27:53 AM
This issue was already addressed in upcoming version.