Sunday, November 30, 2008

Re: Cake Bake Fatal error in Linux

This has nothing to do with CakePHP. You need to sort out your MySQL installation,
first. The error you're seeing is, again, quite common. Google will show you the way.

On Sun, Nov 30, 2008 at 8:57 AM, nithinalex <nithinga@gmail.com> wrote:

Now I am getting a new error...

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/php/cake1.2/
libs/model/datasources/dbo/dbo_mysql.php on line 100

I am getting confused....I installed php cli,Cake1.2 Scripts,php5-
mysql...( Working in Xampp environment in ubuntu )

I am getting the above error when i try to bake model,controllers &
views...only able to configure database.

Can anyone tell how to configure Cake Bake in Ubuntu under Xampp
Environment.




brian wrote:
> It appears that you do not have the PHP MySQL libs installed.
>
> *apt*-get install php-*mysql*
>
> On Sat, Nov 29, 2008 at 10:21 AM, nithinalex <nithinga@gmail.com> wrote:
>
> >
> > Hello Friends
> >
> >   When i am using Cake Bake I am getting an error like this...
> >
> > Fatal error: Call to undefined function mysql_connect() in /usr/share/
> > php/cake1.2/libs/model/datasources/dbo/dbo_mysql.php on line 100
> >
> > I am using XAMPP, Cake 1.2 in Ubuntu.
> >
> >
> > >
> >



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: