|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Call to undefined function: mysql_connect()
I have mysql 4.18 running on redhat 9 and i can add databases and do all the standard mysql> operations but cannot connect through a php client. I've also installed the client api rpm but always get Call to undefined function: mysql_connect() when trying to connect. PHP is installed and is running fine. What did I miss - help please.
![]() |
|
#2
|
||||
|
||||
|
Best to post this on the PHP part of the site since this is not a MySQL question per se.
__________________
MySQL - reformat varchar dates to proper date type || MySQL - room vacancies || output results with column names with mysql only Latest row per group || Deleting duplicates || Gaps in auto increment column My site: sql help articles |
|
#3
|
|||
|
|||
|
Call to undefined function: mysql_connect()
Thanks for the reply. This is not a php problem per se. It's a mysql install and/or configuration problem. My php is working. I'm just tryig to call the standard mysql_connect APi and it cannot be found. I don't understand why.
|
|
#4
|
||||
|
||||
|
This is a PHP issue. There's something in your configuration that's not giving PHP access to those functions. What version of PHP are you running?
__________________
"Not to offend our Swedish listeners ... if we have any, that is—" "—But your team's rubbish." (Sun webcast, Sweden vs. Paraguay) Who needs corporate radio? WeFunkRadio.com | Global Pop Conspiracy | Radio Paradise | SomaFM | The Classic Soul Network | Boot Liquor | WFMU Freeform Radio |
|
#5
|
|||
|
|||
|
Call to undefined function: mysql_connect()
Thanks. This is the default php with rehat 9 and appears to be 4.2.2. Are there config or ini files I'm overlooking? I was focusing on mysql configuration problems.
|
|
#6
|
||||
|
||||
|
If it's 4.2.2, the functions should be built in. I've also never messed with configuring PHP on redhat, so I don't know how helpful I can be. Try doing a phpinfo() and see if you're running with --with-msyql listed in the configure command.
|
|
#7
|
|||
|
|||
|
Call to undefined function: mysql_connect()
Yes, --with mysql is in the phpinfo configure info. This can't be that hard. Any others ideas?
|
|
#8
|
||||
|
||||
|
You're probably missing a module (php-mysql.rpm or some filename like that), then. It may be on one of your RH install discs, or you can get it from their site.
|
|
#9
|
|||
|
|||
|
You were right n the money - works now (actually all the php-mysql apps now work) - thanks
|
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > Call to undefined function: mysql_connect() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|