Db Exception When Shift My Source Code From Windows Server 8 Into Ubuntu 12.04

Db Exception When Shift my source code from XAMPP Windows Server 8 into Ubuntu 12.04

im getting the following error after shifting into apache server in ubuntu 12.04


CDbConnection failed to open the DB connection: could not find driver

Im Also Attaching the screen shot…

Let me know if any one of you have gone through this issue and fixed it.

Thanks in Advance

Does your server meet minimal requirements? (see requirements.php file)

Most likely you’re missing current DB driver (for example, pdo_mysql) on your system.

Either install one or use another db that is available.

For example, for ubuntu and mysql you can do it this way:


sudo apt-get install php5-mysql

Actually i run Several Apps in my LAMP server.this exception is only for this particular app only.

Also i have checked by running php -m in terminial

PDO

pdo_mysql

Are already installed.

Ok, what’s in the config file (section components/db)?

Also, check ‘cache’ config.

It can use Db and different DB driver (like sqlite) which can be not installed on your system.

Db component:


 'db'=>array(

			'connectionString' => 'mysql:host=localhost;dbname=dbname',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '123',

			'charset' => 'utf8',

		),

And cache?..