> I'm trying to get MySQL to work with php, however I'm running php on a
WinNT
> box and I was wondering if I needed to install MySQL in a specific
location
> on the hard drive?  The reason I as is that when I try to connect to a
> database I create in MySQL in php it doesn't find any database.  I'm
totally
> lost on this and don't have a clue as what to do.  Any help will be
greatly
> appreciated.

If you pick a directory other than the default, I think you need to create a
file called my.cnf in the root of C: indicating where mysql is.  Mine looks
like this:

    [mysqld]
    basedir = e:/mysql/


I needed to do this before mysqld would even start.


- Darryl

 ----------------------------------------------------------------------
  Darryl Friesen, B.Sc., Programmer/Analyst    [EMAIL PROTECTED]
  Education & Research Technology Services,     http://gollum.usask.ca/
  Department of Computing Services,
  University of Saskatchewan
 ----------------------------------------------------------------------
  "Go not to the Elves for counsel, for they will say both no and yes"



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to