Cake bake undefined function mysql_query on easyphp
Posted
by fabbrillo
on Stack Overflow
See other posts from Stack Overflow
or by fabbrillo
Published on 2010-05-23T11:20:55Z
Indexed on
2010/05/23
11:30 UTC
Read the original article
Hit count: 617
Hi,
when i try to use the shell to build models
cake bake
M
i get this error:
Fatal error: Call to undefined function mysql_query() in C:\Program Files\EasyPH
P-5.3.2\www\cake\cake\libs\model\datasources\dbo\dbo_mysql.php on line 588
on
phpinfo();
mysql extension is enabled, i'm using mysql driver
running
if(!function_exists('mysql_query')) echo 'error'; else echo 'all fine';
on a separate file prints all fine but on
dbo_mysql.php just before line 588
prints error
i believe the database configuration is correct as on http://127.0.0.1/cake/
it says
Your database configuration file is present.
and
Cake is able to connect to the database.
i'm using the latest stable version of cakephp and easyphp on windows xp pro sp3, paths are setted correctly
any idea?
thank you
© Stack Overflow or respective owner