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

Re: mysql_pconnect troubles



In a galaxy not too far away, John Griffiths spoke on Fri, Nov 17, 2000 at 09:57:22AM +1100:
> hullo all..
> 
> i realise that to some extent i'm talking to myself here but i'm hoping at some point someone will jump in and tell me what i'm doing wrong.
okok, but you really should supply some more information on your problem...
> 
> running on potato newest versions of apache, php3, mysql, and php3-mysql
> 
> I discovered that apacheconfig wasn't working, uncommented the php3 module line myself and restarted apache
> 
> so far so good, my "hello world" now works (woohoo)
> 
> now i try to use mysql and i get a mysql_pconnect error 
could you post the php3 code you use to connect to the mysql server,
plus the exact error message?
are the webserver and mysqld running on the same machine?
have you set the password of the mysql root user?
> 
> on devshed:
> http://www.devshed.com/Books/ProPHP/print.html
> 
> i found this:
> 
> sql.safe_mode boolean
> MySQL has it?s own safe mode. If you set this to TRUE, mysql_connect and mysql_pconnect will ignore any host, user and password information you supply. This means you can only connect to the MySQL database as the user the web server is running as.
> 
> could this be the problem?
> 
> and if the debian packaged mysql is running in safe mode can someone tell me how to stop it?
> 
hmmm.. i'm also using potato's apache/mysql/php3 (the ever dreaded LAMP combination ;-) 
and it is working fine (save i also had to uncomment the php3-module line for myself...). 
so i suppose safe mode is disabled by default...

greets,
/stefan.

> or point me at the right doco?
> 
> thanks
> 
> John
> 
> 
> -- 
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
> 
> 



Reply to: