Click to See Complete Forum and Search --> : Database Advice: local computer and website use


MeltedMonitor
11-26-2003, 11:06 PM
OK, my brain hurts. I have been reading database posts for over an hour now and can't seem to find anything that really sways me one way or another.

I need to create a relational database that can be used both on a local computer with no access to the internet (via CD) and on a website running on a Linux box.

I am an intermediate web designer that has long been hacking perl and dbman from www.gossamer-threads.com for my databases. It has worked well for me because all of my dbs have been small. It taught me the basics and I thoroughly understand the principles of databasing now.

My new project is on a much larger scale. My newfound love for php and SQL tells me that it is definitely the way to go as far as the website is concerned, but can I create/modify/use an SQL database on a local computer?

Idealy, I want to be able to create a database locally and upload the db file to my server and have the website run off of it. The inventory side of the db would only be modified on the local computer, the customer db would be modified locally and on the net and the order db would primarily be modified on the net. Whew.

I am open to any suggestions and am willing to learn new tricks. I just want to feel confident that the tricks I am going to learn are the right ones! I wish I would have picked php and SQL over perl and flatfile text dbs a few years ago!

Darren

Sux0rZh@jc0rz
11-26-2003, 11:46 PM
ok... go to www.mysql.com and download it. it will run on your local machine i believe... and then you can edit it and upload it and it is a relational database so...

also.. inventory DB could be done on your computer then uploaded into the db directory... easy as pie.

the order DB could be done on the net easily with phpmyadmin OR with a preset php form.. such as an order page for your users.. ect.

the customer one is tricky.. cause in order to upload the db you make on your machine to the net it has to overwrite the one on the net.. and that would throw away any modifications done on the net.. i dont think it's possible to do this with ANY database or ANY hack... well mayby an advanced programming hack that would be a pain to make... if you could at all...

MeltedMonitor
11-26-2003, 11:54 PM
Well, I can figure out how I am going to deal with the customer db, don't worry about that part of it. My primary concern was working with the database locally.

I actually downloaded mySQL and installed it on my XP machine, but gave up thinking that I had screwed up. I couldn't find any .exe files or anything to run. With no one handy to ask I just figured I would give it a go another time. Have you actually run mySQL on a Windows box locally?

Darren

Sux0rZh@jc0rz
11-27-2003, 12:00 AM
no actually i have not. i just started getting into it.. i started learning php last week and am just now getting to sql... but yeah check out www.phpmyadmin.net ...i think it might be of use to you... you have to download php and run your local machine like a server though to use it. (i believe) because phpmyadmin is written in php.

Sux0rZh@jc0rz
11-27-2003, 12:08 AM
ok.. yeah you have to install php on your machine in order to use phpmyadmin. course u can download php free so it doesnt really matter... (www.php.net)

Sux0rZh@jc0rz
11-27-2003, 01:08 AM
btw... because SQL is multiplatform it has to be command prompt to work on linux as well as windows...

so u can download graphic interfaces like phpmyadmin.. but it doesnt come with one out of the box(www.mysql.com)...

MeltedMonitor
11-30-2003, 11:40 PM
Best advice I found so far... to use the software available from sokkit.net. It allowed me to install Apache, php and sql all in one easy swoop.

Darren