Tony_big
10-29-2002, 08:32 PM
Dear all,
I get a :
Call to undefined function: mysql_pconnect()
I've also tried my_sql_connect() as well and I still get the same error.
I'm able to use mysql from the shell and have created a couple of tables in a test_db however the moment I try to connect to Mysql vai php it all goes belly up.
I've written a scirpt with php info in and can see that Mysql features in the Apache set up.
'--with-ldap=shared''--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared'
There is however no seperate table for the Mysql setting s (there is of postgress) Should this be there or not now that mysql support is included in php4?
I've read other postings and they point to the set up of users and passwords.
I've set the password for root
The code I'm using looks like this:
$connection=mysql_connect("localhost"," "," ");
I've tried all sorts of values for localhost insluding the host id and the virtual host name
I've tried using the user name that I was signed on with and the related password.
I'll be trying next (after restarting the mysql server:
$connection=mysql_connect("localhost","root","<root password>");
any other suggestions
Tony
I get a :
Call to undefined function: mysql_pconnect()
I've also tried my_sql_connect() as well and I still get the same error.
I'm able to use mysql from the shell and have created a couple of tables in a test_db however the moment I try to connect to Mysql vai php it all goes belly up.
I've written a scirpt with php info in and can see that Mysql features in the Apache set up.
'--with-ldap=shared''--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr'
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared'
There is however no seperate table for the Mysql setting s (there is of postgress) Should this be there or not now that mysql support is included in php4?
I've read other postings and they point to the set up of users and passwords.
I've set the password for root
The code I'm using looks like this:
$connection=mysql_connect("localhost"," "," ");
I've tried all sorts of values for localhost insluding the host id and the virtual host name
I've tried using the user name that I was signed on with and the related password.
I'll be trying next (after restarting the mysql server:
$connection=mysql_connect("localhost","root","<root password>");
any other suggestions
Tony