Page 1 of 1

the mysql extension (not working)....

Posted: Sat Sep 24, 2005 9:07 pm
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!

Posted: Sat Sep 24, 2005 9:43 pm
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.

ehh...

Posted: Sat Sep 24, 2005 10:34 pm
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

Posted: Sun Sep 25, 2005 12:33 pm
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.

Posted: Mon Sep 26, 2005 7:09 pm
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 ;)