Senior & Expert PHP Developers Discussion Forum by Nyros Technologies

HIRE PHP Expert Developers Programmers Coders From India
PHP .Net Ruby on Rails Developers Community, Nyros Technologies, Kakinada
 
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 Discussion Forum by Nyros Technologies Index -> CakePHP
View previous topic :: View next topic  
Author Message
AnilKumar



Joined: 09 May 2008
Posts: 176

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: 232

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 Discussion Forum by Nyros Technologies Index -> CakePHP
Page 1 of 1

 latest topics 
 Topics   Replies   Author   Views   Last Post 
No new posts Upload large file using htaccess file in php
0 AnilKumar 11 Fri Mar 19, 2010 7:06 am
AnilKumar View latest post
No new posts subtracting tha dates from present date using php
0 rajkumar 13 Fri Mar 19, 2010 4:58 am
rajkumar View latest post
No new posts How to change Admin theme in drupal
0 Thirupathi 12 Fri Mar 19, 2010 4:48 am
Thirupathi View latest post
No new posts problem with plesk
1 Sanjana 15 Fri Mar 19, 2010 4:41 am
rajkumar View latest post
No new posts Pagination in smarty using php and mysql
0 AnilKumar 16 Fri Mar 19, 2010 4:06 am
AnilKumar View latest post
No new posts highlet source code in php application
0 Sanjana 21 Thu Mar 18, 2010 11:04 am
Sanjana View latest post
No new posts Get the status from twitter using PHP script
1 Thirupathi 36 Tue Mar 16, 2010 4:41 am
Phani Kumar View latest post
No new posts Error: CakephpController could not be found.
0 Mike 19 Tue Mar 16, 2010 4:21 am
Mike View latest post
No new posts cake php
2 Mike 40 Mon Mar 15, 2010 11:46 am
Mike View latest post
No new posts Problem to create a folder in my server
1 samir 21 Mon Mar 15, 2010 7:32 am
rajkumar View latest post





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