Re: Bake.php errors when generating models - connecting to mysql
Thanks to Carlos Mauricio Samour This solved the problem: I use Linux with php5 and had a similar problem. What I did to correct it is modified the file /etc/php5/cli/php.ini and uncommented : extension=mysql.so Hope that helps you. Good Luck! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Bake.php errors when generating models - connecting to mysql
I use Linux with php5 and had a similar problem. What I did to correct it is modified the file /etc/php5/cli/php.ini and uncommented : extension=mysql.so Hope that helps you. Good Luck! On 6/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks again everyone- Two things- 1./usr/local/php5/lib/php.ini is where my php config file is located when i do phpinfo() in my browser. 2./Users/milk/php.ini is where my config file is when i do php -i in the terminal. So i copied the php.ini from 1. to 2. and did php -i again and im still getting nothing. another thing to mention is that mysql is not showing up at all when i do php -i - but sqlite is? Thanks again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Bake.php errors when generating models - connecting to mysql
Thanks to everyone in advance - I am on OS X 10.4. /Library/WebServer/Documents/cake/scripts root# php bake.php -project configuration ___ __ _ _ ___ __ _ _ __ __ __ _ _ ___ ||__| |_/ |__ |__] |__| |__]|__] |__| |_/ |__ |___ | | | \_ |___ || | | |__] | | | \_ |___ --- [M]odel [C]ontroller [V]iew Please select a class to Bake: (M/V/C) M --- Model Bake: --- PHP Fatal error: Call to undefined function mysql_pconnect() in /Library/WebServer/Documents/cake/libs/model/dbo/dbo_mysql.php on line 101 X-Powered-By: PHP/5.1.4 Content-type: text/html br / bFatal error/b: Call to undefined function mysql_pconnect() in b/Library/WebServer/Documents/cake/libs/model/dbo/dbo_mysql.php/b on line b101/bbr / --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Bake.php errors when generating models - connecting to mysql
Seems like you need to configure your app/config/database.php in order to make use of mysql_connect and not mysql_pconnect. Just a guess so. -- http://www.thinkingphp.org http://www.fg-webdesign.de [EMAIL PROTECTED] schrieb: Thanks to everyone in advance - I am on OS X 10.4. /Library/WebServer/Documents/cake/scripts root# php bake.php -project configuration ___ __ _ _ ___ __ _ _ __ __ __ _ _ ___ ||__| |_/ |__ |__] |__| |__]|__] |__| |_/ |__ |___ | | | \_ |___ || | | |__] | | | \_ |___ --- [M]odel [C]ontroller [V]iew Please select a class to Bake: (M/V/C) M --- Model Bake: --- PHP Fatal error: Call to undefined function mysql_pconnect() in /Library/WebServer/Documents/cake/libs/model/dbo/dbo_mysql.php on line 101 X-Powered-By: PHP/5.1.4 Content-type: text/html br / bFatal error/b: Call to undefined function mysql_pconnect() in b/Library/WebServer/Documents/cake/libs/model/dbo/dbo_mysql.php/b on line b101/bbr / --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Bake.php errors when generating models - connecting to mysql
Thanks for your help- I know mysql is working fine on the cgi/apache side- The CLI is a diffrent story i guess, any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Bake.php errors when generating models - connecting to mysql
Thanks again everyone- Two things- 1./usr/local/php5/lib/php.ini is where my php config file is located when i do phpinfo() in my browser. 2./Users/milk/php.ini is where my config file is when i do php -i in the terminal. So i copied the php.ini from 1. to 2. and did php -i again and im still getting nothing. another thing to mention is that mysql is not showing up at all when i do php -i - but sqlite is? Thanks again --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---