Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where do i put the actual database

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi guys,
Im quite new to php and have been trying to get a database to work. I have been doing all my php stuff by running it on the remote server. (it is not configured on this machine). I do have mysql on locally (win98) and have created a few simple databases. The problem is i cant work out where to put the actual database on the remote machine. I have been trying to get it to work by placing it in the root directory of the php page that is trying to open it.

Maybe this is way off the mark? All of the tutorials and even the book i have (php4 bible)seem to skip this step. If you could point me in the right direction that would be great. Thankyou
 
u have to compile php to work with mysql, and the database just gets saved in the default folder for mysql, but telling php that mysql is there is the important part.
 
I would suggest going to and download a program called PHPTriad. It installs Apache, PHP, and mySQL for you, sets up all the config files, and you can go to work immediately.

Thats what I would do, and it seems to have helped a lot.

Hope this helps,
-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
You guys are missing the point. She wants to know what to do on the remote machine. The point is, you shouldn't have to think about "where" the database is, if it is already installed, but just about how you connect to it. I'm assuming they gave you a username and password to MySQL on your server...?

If so, go to and download phpMyAdmin, which is a set of PHP scripts that give you a nice visual way to connect to MySQL and manipulate your database.
 
Well thanks for your help everyone. rycamor you are right . it is the remote machine.on your advice I have got in contact with my webhost and they pointed me to their sql page which is very helpful.

This has definately pointed me in the right direction.

thankyou
sare
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top