Re: [PHP-DB] connect to db with php?

2003-06-22 Thread David
1. Correct on all points, I just wasn't aware of it. Now connecting ok. Doing everything locally, at least for now. 2. It seems I can use , localhost or 127.0.0.1 with equal success. 3. Yes, I did, and received similar and varied help, all of which helped me to understand what's going on (or

[PHP-DB] connect to db with php?

2003-06-21 Thread David
Warning - beginner :-) I'm new at Linux, php and mysql, so please go slowly. I have a test database with a couple of tables, etc., that I can connect to and run simple queries against, etc., all from the command line. I do most things as root, probably because I didn't set it up right and

Re: [PHP-DB] connect to db with php?

2003-06-21 Thread Doug Thompson
1. The default user table sets up root with no password. Leave out the password and it will probably connect OK. You really need to fix the user table, but as long as the system isn't accessible from outside, you can get by. 2. You don't need to use host, in this case 127.0.0.1, when