Search for:
Jump to: 
Your Ad Here
Post new topic Reply to topic
Author Message
 Post subject: When i enter bake.php in console errors occurs in CakePHP?
PostPosted: Tue Jun 10, 2008 3:52 am 
Offline

Joined: Fri May 09, 2008 4:10 am
Posts: 229
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 4:02 am 
Offline

Joined: Mon Nov 12, 2007 10:12 am
Posts: 357
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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic    [ 2 posts ] 

1, 2, 3, 4, 5 ... 481
Recent topics  Replies   Views   Last post 
No new posts Application Maintenance

by vibrantinfo07 » Thu May 17, 2012 1:03 pm in Others(phpBB, phpfox, etc..)

0

12

Thu May 17, 2012 1:03 pm

vibrantinfo07 View the latest post

No new posts How to recover lost data for Mac OS.

by vickywujiaqi » Wed Jan 12, 2011 3:01 pm in Others(phpBB, phpfox, etc..)

6

2011

Thu May 17, 2012 12:57 pm

vibrantinfo07 View the latest post

No new posts Email marketing is efficient to get traffic!

by ElaineWang » Thu May 17, 2012 2:57 am in HTML

0

18

Thu May 17, 2012 2:57 am

ElaineWang View the latest post

No new posts Set Up Helpdesk System With Cloud Based Helpdesk Software

by ElaineWang » Thu May 17, 2012 2:55 am in Other Webserver Softwares

0

16

Thu May 17, 2012 2:55 am

ElaineWang View the latest post

No new posts Need Help with PHP in Dreamweaver

by kartune » Wed Mar 21, 2012 7:31 am in Macromedia Dreamweaver

1

323

Tue May 15, 2012 5:43 pm

MyronDsouza View the latest post


Your Ad Here