Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-01-2003, 12:34 PM   #1
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
what is mySql

I always hear about php and mySql being used togeather, but im not even sure what mySql is, yea I know its a database, but whats it do, hows it work. (part of my problem is that im not to sure what a database is)

does anyone know any links that explain what mySql is for a real noob, someone who hasnt toched a database (and known it) in his life.
Old 12-01-2003, 02:10 PM   #2
Registered: Aug 2003
Location: USA
Distribution: Slackware 12.0 RC1
Posts: 129

Rep: Reputation: 15
Hi there.

MySQL is typically used as a database server. In other words, it stores information in databases and provides an interface through which PHP can connect and retrieve that information. A database, in simple terms, is basically information stored in tables. Of course, it's more complex than that, but that's the basic idea.

Consider an example of PHP and MySQL. Lets say Company X wants to have a website where customers can shop for the company's many products. An efficient method of storing product information (inventory) is by using a database. So, a database designer will design an inventory database for Company X. It might look somewhat like this:

Product ID | Description | Price  | Cost
22939812   | a product   | $9.99  | $4.00
(a real-life inventory database would have to contain more information, however)

So, the designer uses MySQL to create this database. He would create the inventory 'table' (as seen above) with the 'fields' of Product ID, Description, etc. A web programmer would then write a PHP script to retrieve this information from the server, using a script called SQL (structured query language).

Here's a MySQl intro website:


Last edited by QtCoder; 12-01-2003 at 02:12 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 03:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration