Index

Subject : Re: LUG: Question Ubuntu and mysql

From : Ken Whichard <wwhichard@nc.rr.[redacted]>

Date : Mon, 04 Sep 2006 11:55:41 -0400

Parent


Thanks for the prompt reply.

phpinfo has no references to mysql

Not sure what you mean by :

...so you will need to install the php extension of mysql via yum or yast
or apt-get depending on which distro you are using. .

I'm using Ubuntu 6.06 LTS, Dapper Drake. When I use the graphic interface
for the package manager, it shows that php-mysql and php-mysqli are
installed. should I be looking for something else?

TIA

Ken

At 11:11 AM 9/4/2006, you wrote:

>Make a new php page and put the following syntax in the page:
>
><?php
>phpinfo();
>?>
>
>give it a name.. and browse to the page.. you're looking for mysql to be
>active as an extension.. It's probably not there, so you will need to
>install the php extension of mysql via yum or yast or apt-get depending on
>which distro you are using. .
>
>If you can get to a graphical package manager, just search for php or
>mysql ..
>
>let me know if you have any more questions..
>
>Ken Whichard wrote:
>>Thanks to everyone who helped with this one!
>>
>>It turns out that I had to comment out the bind-address line to get it to
>>work.
>>
>>Now, another question.
>>
>>I am trying to get a php script to run (a rather simple one) that uses
>>the mysql_connect() function. When I run the script, I get the following:
>>
>>*Fatal error*: Call to undefined function: mysql_connect() in
>>*/var/www/apache2-default/whichard/hello.php* on line *7*
>>
>>Do I need to do something to make functions work?
>>
>>Using ver 5.0 xx of mysql
>>
>>TIA again
>>
>>Ken
>>
>>
>>At 06:22 PM 9/1/2006, you wrote:
>>
>>>On 9/1/06, Ken Whichard <wwhichard@nc.rr.[redacted]> wrote:
>>>>OK,
>>>>
>>>>I have done all of the suggested steps but still have the same problem - I
>>>>have nosed around several forums and from some of the comments found, I
>>>>have discovered the following in the my.cnf file:
>>>>
>>>>bind-address 127.0.0.1
>>>
>>>Change the bind-address to the external IP, or add a new one for the
>>>external IP.
>





Replies :