I've seen this error in many places but the exact case.
I got this error while running the cake bake console, exactly after choosing C " controller " then choosing the default database config 

i'm on Ubuntu 10.10 through Virtualbox 
i'm using xampp - and installed the cakephp through the command apt-get install cakephp

here is the error

```
Use Database Config: (default/test) 
[default] > 
PHP Fatal error:  Call to undefined function mysql_query() in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 588

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

```