You are not logged in.

#1 2004-08-03 13:05:47

Fox
Member
Registered: 2004-07-28
Posts: 124

PHP 5 AND MYSQL

PHP is configured, mysqld is runnig but mysql is not listed in phpinfo () and I can't use mysql functions. What's to do?

Offline

#2 2004-08-03 13:15:57

Fox
Member
Registered: 2004-07-28
Posts: 124

Re: PHP 5 AND MYSQL

I'm stupid smile. I forgot to enable the mysql extension.

Offline

#3 2004-08-11 02:44:23

Takaitra
Member
From: Minnesota
Registered: 2004-05-24
Posts: 10

Re: PHP 5 AND MYSQL

Whew, I was stuck for awhile with the same problem when I upgraded to PHP5 :cry:. Don't feel stupid.

Offline

#4 2004-09-06 15:56:41

axion
Member
Registered: 2004-08-22
Posts: 11

Re: PHP 5 AND MYSQL

I have mysql in my phpinfo() and the php.ini file says that I don't need an extension for mysql - its auto enabled....but my scripts are still unable to use mysql...why?

Offline

#5 2004-09-06 20:46:17

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: PHP 5 AND MYSQL

depends on the error your getting. Can you connect to mysql from the CLI client?

Offline

#6 2004-09-06 22:26:44

axion
Member
Registered: 2004-08-22
Posts: 11

Re: PHP 5 AND MYSQL

The error I'm getting while trying to set up PunBB is:

This PHP environment doesn't have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.

and the error I'm getting while trying to set up netjuke2 is:

Failure - PHP Extensions: Netjuke requires that several PHP Extensions be present in order to run in this environment. The following required extensions were not found and will have to be installed before continuing:
    * mysql

As mentioned I can see mysql support in phpinfo(), but I do not know how to use the command line interface of mysql or php.

Offline

#7 2004-09-07 08:49:11

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: PHP 5 AND MYSQL

The mysql extension is not automatically enabled, no matter what your php.ini says (even though mine doesn't say anything like that).  You'll have to enable it yourself.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#8 2004-12-18 08:45:37

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: PHP 5 AND MYSQL

http://bbs.archlinux.org/viewtopic.php? … highlight=

I enabled it, but it still doesn't work,

Offline

#9 2004-12-19 18:17:31

god
Member
Registered: 2004-12-01
Posts: 25

Re: PHP 5 AND MYSQL

I've also updated the bad link, but I still get the same error, even though the link has clearly been changed (check the URL in the previous post if you don't know what I'm talking about). This is driving me nuts because, before I upgraded this morning, my site worked perfectly.

Thanks,

Brian

Offline

#10 2004-12-19 18:18:21

god
Member
Registered: 2004-12-01
Posts: 25

Re: PHP 5 AND MYSQL

Oh, and for those who are wondering what the error actually is, this is what I get on every page making a mysql query:

Fatal error: Call to undefined function mysql_pconnect()

Offline

#11 2004-12-19 18:34:27

god
Member
Registered: 2004-12-01
Posts: 25

Re: PHP 5 AND MYSQL

By actually reading the damn directions, I managed to do the superhuman and link things correctly. "RTFMTYI (RTFM twice, you idiot)" -> Me

Offline

Board footer

Powered by FluxBB