Yii won't connect to a particular DB

I am using the following code:


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

			'emulatePrepare' => true,

			'username' => 'user',

			'password' => 'password',

			'charset' => 'utf8',


This connects to the database, but only if i put a space after the ‘=’ sign. I have several DBs inside my XAMPP and all of them connect with out the space between ‘=’ and database_name. Why for this one particular Database do i need to place a space after the ‘=’ so it will connect and will that still be ok?

Jonny :slight_smile:

This database maybe start with a space. Are you sure that it is not?

Hi sensorario,

No there is no space I exported the table to check, but just re-uploaded it and it works fine now.

thanks for your help.