PDA

View Full Version : phpdev


Mortimer Jazz
04-03-2003, 11:42 PM
I installed phpdev (ala Jesse's recommendation).
At the moment I can connect to localhost without passing any args. For example: $link = @mysql_connect();

but I think this way may be causing problems later in my script so I wanted to specify "localhost" along with the default username and password in the function call, but can't find mention of what they are. I've tried "username" and "password" as well as a couple of other obvious choices. Anybody help me out?

freddycodes
04-04-2003, 12:38 AM
By default mysql is installed with the user root and no password. You should change this asap, see the post-install docs on mysql's site for the exact method.

You should for the time being be able to connect as


$link = mysql_connect("localhost", "root", "");


Personally I think it is much better to install each piece separately and work through the errors and get it working like that instead of using an installer like phpdev, but that just me. I feel like you can learn a lot by going through the ropes and installing each piece manually.

Mortimer Jazz
04-04-2003, 01:05 AM
Yep that works - thanks.
Had a look at the mysql site first, but didn't really understand what they were saying :o - I'm sure that will come soon

I was being a bit lazy using phpdev this time round *shame* I had previously installed everything individually and I know what you mean :D

cheers freddy