Yii Framework Forum: Cdbconnection Failed - Please Help - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cdbconnection Failed - Please Help Rate Topic: -----

#1 User is offline   35mm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 08-February 13

Posted 09 February 2013 - 12:43 AM

Moved testdrive site to shared hosting account and get this error:

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory
/home/www/yii/framework/db/CDbConnection.php(381)


config/main.php db settings are correct and double checked.
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=wiziness_byii',
			'emulatePrepare' => true,
			'username' => 'wiziness_byii',
			'password' => 'xxxxxx',
			'charset' => 'utf8',
		),


Generated the testdrive on my local machine running wamp, as I couldn't run yiic on the shared host. Then uploaded the site and framework.

Any idea what the problem is?
0

#2 User is offline   Shobhith C 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 10-January 13
  • Location:Cochin

Posted 09 February 2013 - 01:55 AM

hi,
plz refer to
http://www.yiiframew...532
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users