Hi.

call this function, phpinfo(); in a *.php file.

That should return alot of usesfull info.

Make sure the mysql extension is being loaded.

If so check the value of the following php config var:

; Default socket name for local MySQL connects.  If empty, 
; uses the built-in ; MySQL defaults.
mysql.default_socket = /var/lib/mysql/mysql.sock

You may need to change the setting in php.ini to tell php to 
use the correct socket to talk to mysql on.

HTH

Keith

In theory, theory and practice are the same;
in practice they are not.

On Sat, 13 May 2006, Steve wrote:

> To: mysql@lists.mysql.com
> From: Steve <[EMAIL PROTECTED]>
> Subject: MySQL, PHP and Yahoo webhosting
> 
> I'm fairly new to all this and duing everything step by step...
>  
> I made my first (test) php site - and it works... then, i have this script
> where i'm supposed to find out if MySQL and PHP talk with each other. and
> there i get the answer
> "Error 2002: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (46)" and the tem-folder in my page root is empty, too.
> But i have PHPMyAdmin and i can log in there. i just have no clue where the
> files are and how i change it so that i finaly can start learning by
> doing... 
>  
> Thanks so much for the help...
> steve
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.6/338 - Release Date: 5/12/2006
>  
> 

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to