where is my database?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
monkeynme
Forum Commoner
Posts: 28
Joined: Thu Aug 14, 2003 3:18 pm
Location: Colorado Springs, CO

where is my database?

Post by monkeynme »

I am extremely new to PHP. :oops: I design basic websites, and a client wants me to add pages to their existing site which uses PHP. They have a product catalog which uses a "catalog_pages.php" file to generate a product category page. Obviously it uses variables and it appears to draw from a database file. But I can't find the database file anywhere on the server. The code from the PHP page says:

<?php
$connId = mysql_pconnect("localhost", "clearad_com", "scoochpaq");
mysql_select_db("db_clearad_com");

Is it a virtual database? How do I get to it so I can add items to it and set up the "catalog_pages.php" to read the new items? You can see the actual site at http://www.clearad.com/catalog_home.htm (select a category).
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

There won't be a database file as such, like you get with a program like Microsoft Access.

You could get a script like phpMyAdmin to work with your database, or a program like MySQLyog - i use both.

Code: Select all

$connId = mysql_pconnect("localhost", "clearad_com", "scoochpaq");
the above line shows you that the MtSQL host is localhost
the username for the database is clearad_com
the password is scoochpaq

Mark
Post Reply