View previous topic :: View next topic |
Author |
Message |
VIpr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Nov 2003 Posts: 34 Location: Belgium
|
Posted: Mon Feb 23, 2004 12:54 pm Post subject: configuring phpmyadmin (help) |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
VIpr n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 19 Nov 2003 Posts: 34 Location: Belgium
|
Posted: Mon Feb 23, 2004 1:33 pm Post subject: |
|
|
// 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 |
|
![](templates/gentoo/images/spacer.gif) |
Xepher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/210466158843f8f3f2c6c53.jpg)
Joined: 14 Mar 2003 Posts: 39
|
Posted: Tue Feb 24, 2004 5:12 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|