Senior & Expert PHP Developers Community

PHP Expert Programmers Coders Developers Forum
Hire an expert PHP developer now!!
 
Log in  or IF not a member please REGISTER
Username:
Password:   


Keyword
Log in | Profile 

When i enter bake.php in console errors occurs in CakePHP?

 
Post new topic   Reply to topic    Senior & Expert PHP Developers Community Index -> CakePHP
View previous topic :: View next topic  
Author Message
AnilKumar



Joined: 09 May 2008
Posts: 71

PostPosted: Tue Jun 10, 2008 3:52 am    Post subject: When i enter bake.php in console errors occurs in CakePHP? Reply with quote

When i enter bake.php at console follwing displayed,can any one help me.?

Baking...
--------------------------------------...
Name: app
Path: C:\easyphp\www\cakephp\app
--------------------------------------...
[M]odel
[C]ontroller
[V]iew

What would you like to Bake? (M/V/C)
> C
--------------------------------------...
Controller Bake:
--------------------------------------...

Fatal error: Call to undefined function mysql_connect() in

C:\easyphp\www\cakeph
p\cake\libs\model\dbo\dbo_mysql.php on line 100

Thanks in advance
Back to top
View user's profile Send private message
samir



Joined: 12 Nov 2007
Posts: 111

PostPosted: Tue Jun 10, 2008 4:02 am    Post subject: Reply with quote

The mysql.so extension library does not come with the PHP or MySQL distributions. It must be installed separately by downloading the php-mysql RPM.


Fix

1. verify php.ini file at OS folder i.e. c:\winnt\,in that open PHP.INI file and remove the
; from extension mysql.so and restart the apache and check it once.

2. Verify that your installation of PHP has been compiled with mysql support. Create a test web page containing <?php phpinfo(); exit(); ?> and load it in your browser. Search the page for MySQL. If you don't see it, you need to recompile PHP with MySQL support, or reinstall a PHP package that has it built-in, both of which are beyond the scope of this document.

3. Verify that the line to load the extension in php.ini has been uncommented. In Linux, the line is extension=mysql.so and in Windows, the line is extension=php_mysql.dll. Uncomment the line by removing the semi-colon. You might also need to configure the extension_dir variable.

4. Check if the php-mysql package is installed by opening a terminal window (bash), and typing, rpm -qa | grep php. If you don't see it, make a note of the exact version of PHP that is installed.

5. Find the php-mysql RPM for the version of PHP that is installed on your system. The easiest way to find it is to search by the version of RedHat you have. Go to a RedHat mirror or look on your RedHat CDs. For example, you can go to http://redhat.usu.edu/mirrors/redhat/lin... If you have RedHat 8.0, then navigate to the folder /linux/8.0/en/os/i386/RedHat/RPMS/ and search for php-mysql. Download this file. (For a list of mirror sites, try RedHat Mirrors or search Google for redhat mirrors.)

6. To install the file, open a terminal window and cd to the directory where you saved the RPM. Then type rpm -hivv php-mysql-4.2.2-17.i386.rpm and press enter. This will install the RPM for RedHat 9.0.

7. You might also need MySQL-shared-compat RPM if you get a dependency of libmysqlclient.so.10 error while installing.

8. The last step is to restart Apache. You can do this with one of the following commands, apachectl restart or /etc/rc.d/init.d/httpd restart.


Source(s):
http://www.somacon.com/p109.php
http://www.google.com/search?q=Fatal+err...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Senior & Expert PHP Developers Community Index -> CakePHP
Page 1 of 1


Watch the latest videos on YouTube.com

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts How to add new advertiser in my openx
1 samir 10 Wed Jan 07, 2009 9:35 am
samir View latest post
No new posts Steps for openx installation ?
0 samir 11 Wed Jan 07, 2009 6:44 am
samir View latest post
No new posts what is openx?
0 samir 5 Wed Jan 07, 2009 6:36 am
samir View latest post
No new posts How can i know whether Gzip compression was activated or not
1 samir 17 Tue Jan 06, 2009 9:16 am
samir View latest post
No new posts Gzip compression in php
1 samir 11 Tue Jan 06, 2009 9:04 am
samir View latest post
No new posts 3 images per row
1 SkyWalker 24 Tue Jan 06, 2009 8:50 am
samir View latest post
No new posts what are the IDE's used in php?
1 samir 27 Fri Jan 02, 2009 9:46 am
samir View latest post
No new posts Best ways to speed up your website in php
1 samir 25 Fri Jan 02, 2009 7:22 am
samir View latest post
No new posts Automatically session expires for admin panel in joomal
0 vani 21 Wed Dec 31, 2008 10:00 am
vani View latest post
No new posts How to hide the titles in every page in Joomla
1 vani 26 Wed Dec 31, 2008 9:36 am
rajkumar View latest post


Your Ad Here


Hire an expert PHP developer / coder / programmer or development team from India now!!

Other Forums : Ruby on Rails   ::   .Net   |   Free unlimited HTML CSS Joomla Wordpress Drupal templates download

Nyros Technologies   |   Developers Blog   |   Kakinada City Portal   |   About PHP Experts   |   More