Powered by Invision Power Board



  Reply to this topicStart new topicStart Poll

> Linux XAMPP and cake bake mysql error, Linux XAMPP and cake bake mysql error
hwtsai
  Posted: Aug 25 2010, 08:36 AM
Quote Post


Newbie
*

Group: Members
Posts: 3
Member No.: 2235
Joined: 25-August 10



sorry for the very basic question. I hv CakePHP installed on my Lucid and XAMPP (AMP are installed in /opt folder). And i try to run cake bake /opt/lampp/htdocs/mycake/cake/app and encounter this error :

Bake Controller
Path: /opt/lampp/htdocs/mycake/cake/app/controllers/
---------------------------------------------------------------
PHP Fatal error: Call to undefined function mysql_connect() in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 374

Fatal error: Call to undefined function mysql_connect() in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 374

what should I do or edit. sorry this is my first day using cakephp biggrin.gif
PMEmail Poster
Top
blux
Posted: Aug 26 2010, 02:47 AM
Quote Post


Advanced Member
***

Group: Super Moderator
Posts: 447
Member No.: 101
Joined: 14-November 07



Do you have mysql insatlled ?


--------------------
You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.(Albert Einstein (1879 - 1955), when asked to describe radio)
PM
Top
hwtsai
Posted: Aug 26 2010, 03:10 AM
Quote Post


Newbie
*

Group: Members
Posts: 3
Member No.: 2235
Joined: 25-August 10



i thought i've made myself quite clear: AMP installed on folder /opt. That means i hv apache, mysql and php installed. It's a default installation from XAMPP.
PMEmail Poster
Top
blux
Posted: Aug 26 2010, 12:09 PM
Quote Post


Advanced Member
***

Group: Super Moderator
Posts: 447
Member No.: 101
Joined: 14-November 07



My bad, I'm sorry ...

I asked that because of your error message ... Did you modified the database.php in /app/config ?


--------------------
You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.(Albert Einstein (1879 - 1955), when asked to describe radio)
PM
Top
hwtsai
Posted: Aug 27 2010, 04:06 AM
Quote Post


Newbie
*

Group: Members
Posts: 3
Member No.: 2235
Joined: 25-August 10



not really. here is a copy of /app/config/database.php:

class DATABASE_CONFIG {

var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'begcake',
'prefix' => '',
);

var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'test_database_name',
'prefix' => '',
);
}

I don't think this is got something to do with the error. The error seems to be something connected to my mysql installation folder, as we know the default installation of mysql (Ubuntu) usually reside on /var/lib/mysql, meanwhile XAMPP put it under /opt/lampp/...
PMEmail Poster
Top
blux
Posted: Aug 27 2010, 12:55 PM
Quote Post


Advanced Member
***

Group: Super Moderator
Posts: 447
Member No.: 101
Joined: 14-November 07



well few other questions :

Is the mysql daemon is running ?

Are you able to see the default page of cakephp to see if you are able to connect to database by there ?

Does the begcake database is created in mysql ?


--------------------
You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. Do you understand this? And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.(Albert Einstein (1879 - 1955), when asked to describe radio)
PM
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Disclaimer:
This forum is in no way affiliated with the Cake Software Foundation
The CakePHP name and icon is a trademark of the Cake Software Foundation


Lo-Fi Version