Apologies if this is a repeat, but I didn't see my response to Trond's
last come through the first time.  Perhaps my mail is flaky.

Trond Eivind Glomsrød wrote:
> 
> rpm -qR php-mysql? You might lack the mysqlclient9 package...

I did indeed lack that package; but installing it didn't make any
difference.

In case it matters, here's the error I'm getting (actually the full text
of my mantis test page):


<begin quote>
Database and config_inc.php test file: If you see "Everything should be
working." at the bottom and no errors then everything should have
gone well. Otherwise you need to configure your settings correctly. 

Trying to connect to database mantis on host titan with username mantis
and password **(hidden)**. 

If you don't see any errors below then your connection works. 


Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/mantis/core_API.php on line 27
<end quote>


...and here's a chunk of the core_API.php file referenced in the error:

        # connect to database
        function db_connect($p_hostname="localhost", $p_username="root",
                                                $p_password="",
$p_database="mantis",
                                                $p_port=3306 ) {

Line 27 -->     $t_result = mysql_connect(  $p_hostname.":".$p_port,
                                                                       
$p_username, $p_password );
                $t_result = mysql_select_db( $p_database );

                ### Temproary error handling
                if ( !$t_result ) {
                        echo "ERROR: FAILED CONNECTION TO DATABASE";
                        exit;
                }
        }


Thanks Trond for the advice so far; any further hints much appreciated.

Cheers,
-m
-- 
Michael Jinks, IB // Technical Entity // Saecos Corporation



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to