when I invoke the model command in the shell I get:
exception ‘CDbException’ with message ‘CDbConnection.connectionString cannot be empty.’ in /Users/dennisoconnor/yii-1.0.9.r1396/framework/db/CDbConnection.php:238
Using a terminal window I can connect to mysql and see the tables within the Eitilte database.
I can’t figure out why it thinks connectionString is empty.
I’m working on a MacBook Pro using Snow Leopard and it native PHP 5.3.0 environment
phpinfo(); shows:
PDO
PDO support enabled
PDO drivers mysql, sqlite, sqlite2
pdo_mysql
PDO Driver for MySQL enabled
Client API version mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
Uh… are you sure you’re editing the correct file? xD I actually did that the other day (editing the wrong file, I mean). Anyway, I don’t think there are any problems with your MySQL installation. If there were, I’m pretty sure you’d get other kinds of errors. I’d just try to figure out if there’s something wrong with the application structure or something like that.
I’m feeling pretty foolish. I’m new to Netbeans and Subversion. I was editing a file in Netbeans and running the shell against a different directory. I very sorry if I wasted yours or anyone’s time chasing a non-problem. Every thing is working just fine now that I’m working against the right set of files.