the mysql extension (not working)....

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
snip128
Forum Newbie
Posts: 4
Joined: Sat Sep 24, 2005 8:55 pm

the mysql extension (not working)....

Post by snip128 »

hi, i'm trying to use phpmyadmin to connect to my mysql database, but it says that the mysql extension can't be loaded. I've uncommented the line in the extensions section of php.ini that has "mysql.so" (i'm running debian linux, with apache). Using the <?php phpinfo();?> script, i found something interesting in the configure command section... '--without-mysql' I installed apache2 with apt-get and im 99% sure the php came with it....i installed mysql with apt-get using the package mysql-server....any ideas on whats wrong? (by the way, mysql.so does exist...is there a certain place it has to be?...i copied it to a few different places a while ago hoping it would work (and it didnt), so i don't know what the original location is..)

thanks for the help in advance!
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

I don't know about all that apt-get stuff, but php needs to be recompiled with the --with-mysql flag.

php is something you should always compile manually, in my opinion.
snip128
Forum Newbie
Posts: 4
Joined: Sat Sep 24, 2005 8:55 pm

ehh...

Post by snip128 »

apt-get is a debian linux utility that downloads and installs a package automatically for you ;) but...i tried installing php and it didnt work...it says libxml2 isnt installed...but it is....*ahem* i think ill ask that on linuxquestions.org then get back to you after i reinstall php...im sorta a linux noob, as well as php xD
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

ick, debian. I run Gentoo. ^_^ portage.

Anyway, when you install php there might be a flag to tell the compiler where libxml2 is. Don't really know about that.
snip128
Forum Newbie
Posts: 4
Joined: Sat Sep 24, 2005 8:55 pm

Post by snip128 »

mm i had debian once...i installed it from stage 1...took forever to install xD im too impatient to install it again but its somethin to think about when i get bored xD

anyway, i fixed it...i reinstalled php and apache, not using apt-get....unfortunately, i couldn't get the php5 setup to work, so i'm using php4...i had php4 in the first place anyway...so im all good now :D thanks guys...now to start a new thread about how to organize my mysql database ;)
Post Reply