Share » Forums » General » Using runcronjobs.php on Server:...

Using runcronjobs.php on Server: mysql_connect ends up with "Fatal error"

Using runcronjobs.php on Server: mysql_connect ends up with "Fatal error"

Friday 11 February 2005 8:40:40 am - 4 replies

Author Message

Ɓukasz Serwatka

Friday 11 February 2005 8:51:09 am

Hi,

Did you clear the cache after installation on production server? Try remove var/cache and var/prefix/cache.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christiane Kloss

Friday 11 February 2005 9:19:00 am

Yes (its my favorite hobby).

In the meantime I, separated this code:

#!/usr/bin/env php
<?php
$server = "localhost";
$user = "www";
$password = "*****";
$connection = mysql_connect( $server, $user, $password, true );
if (!$connection) {
die('Could not connect: ' . mysql_error());}
?>

Same result: Fatal error: Call to a undefined function mysql_connect()

Kristian Hole

Sunday 13 February 2005 2:24:04 am

Hi.

Seems like your command line version interface to php is compiled without mysql-support. You either need to get a (precompiled) version with mysql-support, or recompile PHP with mysql.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Christiane Kloss

Monday 14 February 2005 4:31:39 am

Indeed: the command line interface of php was build without mysql....

Thank you very much.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu