Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not loading mysql
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
calubro
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2005
Posts: 112
Location: vienna

PostPosted: Sun Oct 23, 2005 2:07 pm    Post subject: not loading mysql Reply with quote

hi again,

in wanted to install phpmyadmin with apache2, so the apache works, mysql works, and php works ...

but when i try to access 192.168.1.100/phpmyadmin/
it says:
Code:
Die Erweiterung "mysql" kann nicht geladen werden.
Bitte überprüfen Sie Ihre PHP-Konfiguration.

means that mysql cannot be loaded and that i should check my php configuration. so i did this.

Code:
*  dev-php/mod_php
      Latest version available: 4.4.0-r3
      Latest version installed: 4.4.0-r3
      Size of downloaded files: 4,372 kB
      Homepage:    http://www.php.net/
      Description: Apache module for PHP
      License:     PHP-3


is installed and also mysql is installed:
Code:
mysql> show databases;
+----------+
| Database |
+----------+
| mysql    |
+----------+
1 row in set (0.00 sec)

mysql>


then ... also the php_info() function works .. and gives me an output ... but the thing, that i think could be the reason is the line:

Code:
Configure Command:
.....
...
 '--without-mysql'


but i dont know where i can change this because in the /etc/conf.d/apache2 it is enabled ..

Code:
APACHE2_OPTS="-D SSL -D PHP4"


thanks for help!
_________________
«calubro is the sound of the future.»
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Oct 23, 2005 2:14 pm    Post subject: Reply with quote

Hi.

You need to check how php was installed. Do the following
Code:
# emerge -pv dev-php/php
# emerge -pv mod_php

You will need to have the support for mysql activated in both, I think. If the support in deactivated, you can either do
Code:
# USE="mysql" emerge -av dev-php/php mod_php

or, preferably edit /etc/portage/package.use and add the following two lines
Code:
dev-php/php mysql
dev-php/mod_php mysql

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
calubro
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2005
Posts: 112
Location: vienna

PostPosted: Sun Oct 23, 2005 2:21 pm    Post subject: Reply with quote

Code:

# emerge -pv dev-php/php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-php/php-4.4.0-r1  +X +berkdb +crypt -curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix +ipv6 -java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl -tiff +truetype +xml2 -yaz 0 kB

Total size of downloads: 0 kB

# emerge -pv mod_php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-php/mod_php-4.4.0-r3  +X -apache2 +berkdb +crypt -curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix +ipv6 -java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl -tiff +truetype +xml2 -yaz 0 kB

Total size of downloads: 0 kB


this is the output .. so i think it is activated!?
_________________
«calubro is the sound of the future.»
Back to top
View user's profile Send private message
calubro
Tux's lil' helper
Tux's lil' helper


Joined: 14 May 2005
Posts: 112
Location: vienna

PostPosted: Sun Oct 23, 2005 3:33 pm    Post subject: Reply with quote

thanks,
after emerging it again with
# USE="mysql" emerge -av dev-php/php mod_php
i can reach the login .. but now i cant login ... don't know why because everytime i had to enter a pw and a username i entered root and everytime the same password ...

*hmpf* ... frustrating ; -)(
_________________
«calubro is the sound of the future.»
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Oct 23, 2005 7:45 pm    Post subject: Reply with quote

Are you using mysql's root or phpmyadmin account? I think you need to use the latter.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Oct 24, 2005 4:44 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Networking & Security.
Not an installing gentoo problem, gentoo is installed.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
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