Newb question PHP/mySQL
Posted: Sat Jan 11, 2003 8:09 pm
I'm runnin PHP/mySQL on my PC as of right now using Apache. The thing that stumps me is on some php code that I've seen/tested it uses
Now how do I know what my username/pass is? I havn't set anything except when I first installed mySQL in which I had done "mySQLadmin -u root password yourpassword" yet no user name. How would I set a user name and would I use the password I set when I did the "mySQL -u root password yourpassword"? Help would be much appreciated
Code: Select all
$server = "localhost";
$db_user = "username";
$db_pass = "password";
$database = "database";