Forum Moderators: mack

Message Too Old, No Replies

MySQL and Apache

MySQL running but without server or can I use safari/firefox

         

oneofmany

2:01 pm on Sep 7, 2006 (gmt 0)

10+ Year Member



please forgive my utter ignorance. even the mysql for dummies didn't address this one, nor did 'PHP and MySQL development' or the two other books I'm using for reference. I can not seem to find a good explanation of the relationship between apache and mysql and the difference between a server connection for mysql vs. safari/ firefox. Being new to unix (Terminal, Darwin), I found getting started with PHP a little tricky but that was a piece of cake comparatively. can someone please enlighten me? Thank you!

coopster

2:18 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Perhpas this thread on MySQL : Its a language. No wait, its a server! [webmasterworld.com] will shed some light?

jtara

4:50 pm on Sep 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There IS no connection between Apache and MySQL.

MySQL is a database engine, server, and tools. Think Microsoft Access, SQL Server, Oracle, etc.

MySQL comes with some command-line tools that will let you create databases, populate them, look at them, do complex queries, etc. There are add-on GUI tools available from third parties that add "on top" of MySQL and make it look more like Microsoft Access, etc.

All access to MySQL data is made through a connection to a server. For most MySQL users here, you will probably run my MySQL server on the same computer as your web server. It is entirely distinct from your web server, though, operates on a different port, and uses a different high-level protocol. (e.g. it's own proprietary protocol - not HTTP).

The nice thing about this is that any tool that works with MySQL (such as the GUI tools I mentioned above, or PHP, Perl, etc.) can access any MySQL database on any connected machine.