php -m gives me the following : [PHP Modules] ctype curl date dom exif filter ftp hash iconv json ldap libxml mbstring mysql mysqli odbc openssl pcre PDO pdo_sqlite posix Reflection session SimpleXML sockets SPL SQLite standard tokenizer xml xmlreader xmlrpc xmlwriter xsl zlib
[Zend Modules] and php --ini gives me the following: Configuration File (php.ini) Path: /etc Loaded Configuration File: (none) Scan for additional .ini files in: (none) Additional .ini files parsed: (none) I uncommented the mysql statements in the php.ini.default, but received errors about php being unable to load dynamic libraries. Thanks for your help. On Aug 18, 5:31 pm, "Christian Winther" <[EMAIL PROTECTED]> wrote: > Or do this in CLI: > > "php -m" to get a list of loaded modules > and > "php --ini" to get a list of ini files loaded by CLI > > Those two should point you in the right direction > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Marcin > Domanski > Sent: 18. august 2008 23:21 > To: [email protected] > Subject: Re: Bake and MySQL problems > > Hey, > probably (99%) you PHP CLI doesnt have mysql extension loaded . find > the php.ini responisble for cli and uncomment the mysql extension > lines. > -- > Marcin Domanskihttp://kabturek.info > > On Mon, Aug 18, 2008 at 3:51 PM, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > I am going through David Golding's new book "Beginning CakePHP" and > > have found it extremely helpful up until the Bake section. > > > I have built a scaffolded blog, so I know that my DB connections are > > correct. And the paths to my app are correct in Terminal. However, > > when I go to bake my controller, I receive this messages from > > Terminal: > > > Warning: mysql_connect(): Can't connect to local MySQL server through > > socket '/var/mysql/mysql.sock' (2) in /Users/iZach/Sites/dev/blog/cake/ > > libs/model/datasources/dbo/dbo_mysql.php on line 117 > > > Warning: mysql_select_db(): supplied argument is not a valid MySQL- > > Link resource in /Users/iZach/Sites/dev/blog/cake/libs/model/ > > datasources/dbo/dbo_mysql.php on line 122 > > > Warning: mysql_get_server_info(): supplied argument is not a valid > > MySQL-Link resource in /Users/iZach/Sites/dev/blog/cake/libs/model/ > > datasources/dbo/dbo_mysql.php on line 130 > > > Warning: mysql_query(): supplied argument is not a valid MySQL-Link > > resource in /Users/iZach/Sites/dev/blog/cake/libs/model/datasources/ > > dbo/dbo_mysql.php on line 152 > > Error: Your database does not have any tables. > > > But my database is connected and does have tables! > > > I am using RC 1.2.x.x_17.08.2008 > > > Thanks so much. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
