SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Path to MySQL db
-
May 26, 2003, 06:33 #1
- Join Date
- May 2003
- Location
- Sudbury
- Posts
- 131
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Path to MySQL db
Hi:
I read the first four downloadable chapters of the SitePoint book on PHP and MySQL. Have a question as a newbie.
The 4th free chapter showed how to create a jokes database, no real problems with understanding the chapter although I haven't yet been able to test out the code. Where does the jokes database reside? In the same folder as the PHP code that creates it? If so, how do I access a database that exists in another folder?
Jules
-
May 26, 2003, 06:44 #2
- Join Date
- May 2001
- Location
- Vancouver, BC Canada
- Posts
- 502
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
the joke database resides in the mysql directory. When you mean access the database, do you mean accessing it via php? or accessing it manually? if it's the former then you need to read on about accessing database stuff using php in mysql. If it's the latter, then just go into your mysql directory, it's in one of the sub folders. There will be a sub-sub-folder that's named after whatever name you gave your database.
i hope this answers your question
-
May 26, 2003, 10:18 #3
- Join Date
- May 2003
- Location
- Sudbury
- Posts
- 131
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Accessing via PHP. OK, I will read more.
Thanks,
Jules
Bookmarks