[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] MySQL Working with phpMyAdmin BUT,, does not work when called



See the following link on Sun Knowledgebase:

http://cobalt-knowledge.sun.com/cgi-bin/kbase.cfg/php/enduser/std_adp.php?p_
sid=KhNKq1Bg&p_lva=&p_refno=020723-000005&p_created=1027454398&p_sp=cF9ncmlk
c29ydD0mcF9yb3dfY250PTEmcF9zZWFyY2hfdGV4dD1teXNxbCZwX3NlYXJjaF90eXBlPTMmcF9w
cm9kX2x2bDE9MSZwX3Byb2RfbHZsMj0yOCZwX2NhdF9sdmwxPX5hbnl_JnBfY2F0X2x2bDI9fmFu
eX4mcF9zb3J0X2J5PWRmbHQmcF9wYWdlPTE*&p_li=

By default, mysql is not configured to run with php scripting. To enable it,
please do the following:

Enable the php scripting for the vsite under the following menu
"Site Management -> Services -> Web -> Enable PHP scripting"
Edit the /etc/httpd/php.ini to add the following line
extension=mysql.so
Restart httpd as root by typing:
/etc/init.d/httpd restart
Start the mysql daemons by typing
/etc/init.d/mysql start
Create a symlink /tmp/mysql.sock to /var/lib/mysql/mysql.sock using
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
To test the feature, install the attached sample test page in the web root
of your virtual site. When you access this page, it should report that it
made successful connection to mysql.
_____________________________

Clay McNeill
Internet Director
WAVE 3 Television
Louisville, Kentucky

Direct: 502.562.8739
Main:   502.585.2201
E-mail: idirector@xxxxxxxxx <mailto:idirector@xxxxxxxxx>
Web:   http://www.wave3.com
_____________________________

IMPORTANT: Privacy Notice - The information transmitted is intended only for
the person or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you
have received this in error, please contact the sender and delete the
material from any computer.



-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Matt
Sent: Tuesday, February 11, 2003 2:28 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] MySQL Working with phpMyAdmin BUT,, does not
work when called


Hello,
I installed the Package Master Version of MySQL recently and phpMyAdmin on a
brand new RAQ550 and for some reason phpMyadmin can see MySQL running and it
can connect to it-- But when I run any php stuff to talk to it

EXAMPLE:

<?
$DB = mysql_connect("localhost", "TheUsername", "ThePassowrd") or die("Could
not connect to DB!");
mysql_select_db("TheDatabase") or die("Could not select database");
?>

I get this error:

"Fatal error: Call to undefined function: mysql_connect() in
/home/.sites/106/site3/web/db.conf on line 2"

NOW,,, I have read through the user groups and found this fix

You just need to edit your /etc/httpd/php.ini file, locate the portion where
it says "extension=mysql.so"
and remove out the comments (the semi colon is the comment).

then restart your httpd daemon
/etc/rc.d/init.d/httpd restart


---> I did that,, and it still does not work. Can anyone help me out? It
would be greatly appreciated.

Thank You,

Matt



_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users