| CakePHP Official Site · Rules and Regulations |
Help
Search
Members
Calendar
Shoutbox
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| hwtsai |
|
|
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 |
| blux |
Posted: Aug 26 2010, 02:47 AM
|
![]() 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)
|
| hwtsai |
Posted: Aug 26 2010, 03:10 AM
|
|
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.
|
| blux |
Posted: Aug 26 2010, 12:09 PM
|
![]() 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)
|
| hwtsai |
Posted: Aug 27 2010, 04:06 AM
|
|
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/... |
| blux |
Posted: Aug 27 2010, 12:55 PM
|
![]() 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)
|
![]() |
![]() ![]() ![]() |