Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configuring phpmyadmin (help)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
VIpr
n00b
n00b


Joined: 19 Nov 2003
Posts: 34
Location: Belgium

PostPosted: Mon Feb 23, 2004 12:54 pm    Post subject: configuring phpmyadmin (help) Reply with quote

Help! :s what do I need to change to get onto mysql with phpmyadmin --> mysql runs because in the terminal I can open it ( what config file do i need to change and what ? )

Fatal error: Call to undefined function: mysql_get_client_info() in /var/www/localhost/htdocs/phpmyadmin/libraries/defines.lib.php on line 47 ??
Back to top
View user's profile Send private message
VIpr
n00b
n00b


Joined: 19 Nov 2003
Posts: 34
Location: Belgium

PostPosted: Mon Feb 23, 2004 1:33 pm    Post subject: Reply with quote

// MySQL client API
Code:
if (!defined('PMA_MYSQL_CLIENT_API')) {
    $client_api = explode('.', mysql_get_client_info());--> LINE 47
    define('PMA_MYSQL_CLIENT_API', (int)sprintf('%d%02d%02d', $client_api[0], $client_api[1], intval($client_api[2])));
    unset($client_api);
Back to top
View user's profile Send private message
Xepher
n00b
n00b


Joined: 14 Mar 2003
Posts: 39

PostPosted: Tue Feb 24, 2004 5:12 am    Post subject: Reply with quote

Odds are that PHP is compiled without support for MySQL. I believe if you emerge MySQL before PHP it will set the use flag automatically. Otherwise, you may need to manaually add "mysql" to the USE flags.

If you want to double check before recompiling everything, try making a php file with the contents as follows.

Code:

<?php php_info() ?>


Put that on the server, and call it up in a webbrowser. It should tell you all the options and extensions that PHP was compiled with. Make sure MySQL is in there, and possibly check that the major version matches the version of your MySQL install.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum