RE: [PHP-DB] MySQL Connect Problem

2001-05-18 Thread Jeff Oien
t; > > one file db_details.php > > > The reason I don't do it all in one is that it didn't like "." in IP > > > addresses for some reason ( I think it thought it was the beginning of a > > > string) > > > On my windows machine my db_details would look lik

Re: [PHP-DB] MySQL Connect Problem

2001-05-18 Thread Greg K
sses for some reason ( I think it thought it was the beginning of a > > string) > > On my windows machine my db_details would look like this > > > $host="localhost"; > > $user=""; > > $password=""; > > $dbasename="database_nam

Re: [PHP-DB] MySQL Connect Problem

2001-05-18 Thread Shahmat Dahlan
in one is that it didn't like "." in IP > > addresses for some reason ( I think it thought it was the beginning of a > > string) > > On my windows machine my db_details would look like this > > > $host="localhost"; > > $user=""; &

RE: [PHP-DB] MySQL Connect Problem

2001-05-17 Thread Jeff Oien
"localhost"; > $user=""; > $password=""; > $dbasename="database_name"; > ?> > You shouldn't need a password. > I hope this helps > All the Best > Lisa > > -Original Message- > From: Jeff Oien [mailto:[EMAIL

RE: [PHP-DB] MySQL Connect Problem

2001-05-17 Thread Rubanowicz, Lisa
Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 2:16 PM To: PHP-DB Subject: RE: [PHP-DB] MySQL Connect Problem I'm on Windows 2000. Jeff > Jeff, > > If you are on unix/linux use the command id to see who you are. > You can only use jeff in your connect string i

RE: [PHP-DB] MySQL Connect Problem

2001-05-17 Thread Jeff Oien
I'm on Windows 2000. Jeff > Jeff, > > If you are on unix/linux use the command id to see who you are. > You can only use jeff in your connect string if jeff is a user in your mysql > database. > > If you are root when you are running mysql then you should probably set a > password for root i

Re: [PHP-DB] MySQL Connect Problem

2001-05-16 Thread Wayne Bastow
Jeff, If you are on unix/linux use the command id to see who you are. You can only use jeff in your connect string if jeff is a user in your mysql database. If you are root when you are running mysql then you should probably set a password for root in the database. Wayne On Thu, 17 May 200

RE: [PHP-DB] MySQL Connect Problem

2001-05-16 Thread Jeff Oien
> > Here is sample code: > > > $connection = @mysql_connect("localhost", "jeff", "*") > > or die("Couldn't connect."); > > if ($connection) { > > $msg = "success!"; > > } > > ?> > > > > This is on my machine only used by me. I also tried connecting to > > IP address and 127.0.0.1 and it still

Re: [PHP-DB] MySQL Connect Problem

2001-05-16 Thread boclair
> Here is sample code: > $connection = @mysql_connect("localhost", "jeff", "*") > or die("Couldn't connect."); > if ($connection) { > $msg = "success!"; > } > ?> > > This is on my machine only used by me. I also tried connecting to > IP address and 127.0.0.1 and it still won't work. Thanks.

RE: [PHP-DB] MySQL Connect Problem

2001-05-16 Thread Jeff Oien
ing, but I've been able to connect to IP > > > addresses and not localhost's before when dealing with Windows 2k and > > mySQL. > > > It's almost as if my install of mySQL had set up its own name of > something > > > else. Very weird, but its worth a shot. >

RE: [PHP-DB] MySQL Connect Problem

2001-05-16 Thread Jeff Oien
been able to connect to IP > > addresses and not localhost's before when dealing with Windows 2k and > mySQL. > > It's almost as if my install of mySQL had set up its own name of something > > else. Very weird, but its worth a shot. > > > > -Original

RE: [PHP-DB] MySQL Connect Problem

2001-05-16 Thread Jeff Oien
something > else. Very weird, but its worth a shot. > > -Original Message- > From: Jeff Oien [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 15, 2001 8:24 PM > To: PHP-DB > Subject: RE: [PHP-DB] MySQL Connect Problem > > > Yes they are. > Jeff > &

RE: [PHP-DB] MySQL Connect Problem

2001-05-15 Thread Jeff Oien
Yes they are. Jeff > Is the MySQL and Apache running on the same machine? > > Jeff Oien wrote: > > > I have MySQL on a new Win2000 install and can't connect to it using PHP. > > I am able to connect using the command line. I'm not sure what the next > > step is to troubleshoot. I've checked the

Re: [PHP-DB] MySQL Connect Problem

2001-05-15 Thread Shahmat Dahlan
Is the MySQL and Apache running on the same machine? Jeff Oien wrote: > I have MySQL on a new Win2000 install and can't connect to it using PHP. > I am able to connect using the command line. I'm not sure what the next > step is to troubleshoot. I've checked the username and password in the > .i

[PHP-DB] MySQL Connect Problem

2001-05-15 Thread Jeff Oien
I have MySQL on a new Win2000 install and can't connect to it using PHP. I am able to connect using the command line. I'm not sure what the next step is to troubleshoot. I've checked the username and password in the .ini file using WinMySQLAdmin. I'm using Apache which is working fine otherwise. T