LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-01-2003, 11:34 AM   #1
e1000
Member
 
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, 01:10 PM   #2
QtCoder
Member
 
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:

Code:
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:
http://www.devshed.com/Server_Side/MySQL/Intro/

Cheers!

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


Reply



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 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-07-2008 11:48 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 PM.

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