Have you managed to get mysql working outside of cake?
Try the following:
<?php
mysql_connect("localhost", "username", "password")
or die("unable to connect: ".mysql_error());
mysql_select_db("database_name")
or die("unable to select database: ".mysql_error());
$s = mysql_query("SELECT * FROM table")
or die("unable to select: ".mysql_error());
?>
If you can't get this script running outside of cake, you will need to
check out the php documentation regarding mysql. Note: to get php &
mysql to work on windows you might need to download some dll's not
included in the standard php install. (more details on this on the
mysql page of the php manual)
The problem is that even though the mysql.so is present, one of its
dependant files (dll's) is missing.
On Nov 27, 3:07 am, lynch <[EMAIL PROTECTED]> wrote:
> I tried to get into ACL-stuff over console commands, but I always got
> the the following error.
>
> Fatal error: Call to undefined function: mysql_connect() in
> #################/cake/cake/libs/model/datasources/dbo/dbo_mysql.php
> on line 101
>
> After a short search i found the solution to prepare the cli php.ini.
> I added the extension=mysql.so,
> but I still got the same errror. Since this i tried a lot, even the
> phpinfo() said "MySql Support Enabled".
>
> So it was not the obvious Solution, or? I´m Thankful for every
> request.
>
> PS Sorry for robbish english :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---