Yii Framework Forum: A Valid Database Connection Is Required To Run This Generator - Yii Framework Forum

Jump to content

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

A Valid Database Connection Is Required To Run This Generator A valid database connection is required to run this generator Rate Topic: -----

#1 User is offline   Telor Penyu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 21-February 13

Posted 21 February 2013 - 10:37 PM

I have made a database named Program then I have change my config\main like this

'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=program',
'emulatePrepare' => true,
'username' => 'root',
'password' => '',
'charset' => 'utf8',
),

but when I start the model Generator it's give me "A valid database connection is required to run this generator"

What's happend ? Help Please....
0

#2 User is offline   outrage 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 313
  • Joined: 10-November 09
  • Location:Blackpool, United Kingdom

Posted 25 February 2013 - 11:05 AM

Case sensitivity?

If database is called "Program", name it Program in your settings.
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