i resolved this. you need to make sure that php cli is configured with mysql support. on my system, this meant editing /etc/php5/cli/php.ini to load the mysql.so extension.
On 27 Jan, 16:43, "lukemack" <[EMAIL PROTECTED]> wrote: > hi, > > i'm trying to run acl.php from the command line on linux: php acl.php > initdb but get the following error: > > Fatal error: Call to undefined function mysql_connect() in /var/www/ > cake/libs/model/dbo/dbo_mysql.php on line 102 > > someone mentioned that php cli might not be configured with mysql > support but doesnt know how to do this. > > can anyone tell me how to configure php cli on linux with mysql > support? i tried adding defaul host, username and password in /etc/ > php5/cli/php.ini but this didn;t make any difference. > > thanks, > > lukemack. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
