473,809 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Basics

Hello all,
This might sound so rudimentary nobody pays any attention to it, but in all
the manuals I have scoured in the last week - trying to understand the
fundamentals of My SQL - it has never been discussed - and I need to know
the following:-
(1) "What is the structure of a database" (What is the directory tree like
on the server) -
(2)"What is the relationship to a "table" to the data contained in the
database.?:
(3)" Can a database support many "Tables" or are the tables data specific
like "user_file" containing records = "User Screen Name, User E-mail, User
Join date, etc" and can a data value be inserted into the database that is
derived from a previous field( user join date + 6 months)
(4) about 25 years ago I dabbled in a database from Campbell Systems for
the Spectrum home computer where a report was a selective print out of
certain data fields - what is that analogous to in today's terminology?
I am sure that when I understand these fundamental points I shall get on
like a house on fire.
Someone dial 911!
Jul 23 '05 #1
2 1338
Bodger (no****@spamcop .net) wrote:
: Hello all,
: This might sound so rudimentary nobody pays any attention to it, but in all
: the manuals I have scoured in the last week - trying to understand the
: fundamentals of My SQL - it has never been discussed - and I need to know
: the following:-
: (1) "What is the structure of a database" (What is the directory tree like
: on the server) -

I suspect this is documented in the reference manuals somewhere, mysql has
lots of documentation online at their site.

On my system, creating a database appears to create a directory in
/var/lib/mysql. The directory name is the database name. Each table
appears to create several files within that direcotry, with a name based
on the table name.

HOWEVER, I never ever normally look at these files. I didn't even
remember where they where excep by looking around. Mysql has programs
that maintain the data, so you don't ever need to know about the files
except for your backups (and even then, mysql has commands you can use for
doing database specific backups).
: (2)"What is the relationship to a "table" to the data contained in the
: database.?:

The rows (i.e. records) of data are stored in tables. (The tables, are
stored in the files mentioned above).
: (3)" Can a database support many "Tables" or are the tables data specific
: like "user_file" containing records = "User Screen Name, User E-mail, User
: Join date, etc" and can a data value be inserted into the database that is
: derived from a previous field( user join date + 6 months)

-- Can a database support many "Tables", etc, etc

Yes, that is the whole point.
: (4) about 25 years ago I dabbled in a database from Campbell Systems for
: the Spectrum home computer where a report was a selective print out of
: certain data fields - what is that analogous to in today's terminology?

Use the mysql program to login to a specific database.

Then use the SELECT statement to choose the data you want to see from
within the tables that contain the data.
--

This space not for rent.
Jul 23 '05 #2
Bodger wrote:
Hello all,
This might sound so rudimentary nobody pays any attention to it, but in all
the manuals I have scoured in the last week - trying to understand the
fundamentals of My SQL - it has never been discussed - and I need to know
the following:-
(1) "What is the structure of a database" (What is the directory tree like
on the server) -
MySQL supports several storage types, the most commonly used are MyISAM
and InnoDB.

MyISAM stores databases under <datadir>/<database>/. For instance, if
your datadir is C:\Program Files\MySQL\MyS QL Server 4.1\data, and your
database name is "accounts", then you'll see a subdirectory called
accounts below that data directory. In the accounts directory, for each
table, there are three files. <tablename>.f rm stores the structure of
the table. <tablename>.M YD stores the data. <tablename>.M YI stores the
index structures.

InnoDB is different. By default, all table structures, data, and
indexes are collected together in one file called "ibdata1" in the data
dir. Multiple databases, each of which can consist of multiple tables,
all share this file. That's the default configuration; there are
options for storing InnoDB tables in individual files.

But this is usually academic, because as another poster points out, the
database management software takes care of these details of storage for you.
(2)"What is the relationship to a "table" to the data contained in the
database.?:
A table belongs to one database. A table stores a set of records
(rows). All records in a given table share the same set of fields
(columns). I'm not sure if this answers your question.
(3)" Can a database support many "Tables" or are the tables data specific
like "user_file" containing records = "User Screen Name, User E-mail, User
Join date, etc" and
Each table has a set of fields, and all records in that table must have
those fields. But a database can contain many tables, each with their
own distinct set of fields.

You seem to be using the term "record", but the conventional term is
"field" for what you're describing. A record is a row of values, one
value for each field in the table.
can a data value be inserted into the database that is
derived from a previous field( user join date + 6 months)
Certainly. There are many ways to do it, just as there are usually many
ways to do a given task in any programming language. The best method
depends on the situation, like who's doing the work, how often does it
need to be done, how many data are being inserted, etc.
(4) about 25 years ago I dabbled in a database from Campbell Systems for
the Spectrum home computer where a report was a selective print out of
certain data fields - what is that analogous to in today's terminology?


Sure. There are many fancy report-generation tools out there, but
basically they all do that task in common: based on some criteria and
choices that you give it, reports are selections from one or more
tables, related and calculated in various ways.

You might want to get an introductory book on SQL and database design.
It will be a lot quicker than waiting for newsgroup people to answer all
your questions. :-) "SQL for Dummies" is a pretty good choice (I'm not
trying to be condescending--it's actually a good book for introductory
concepts).

Regards,
Bill K.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2942
by: enki | last post by:
I have been learning perl and C++, and I have been looking into Java. I know very little about the language, I have found some realy bad books that realy served to confues me and I have to find medicore C++ books to explain objects. Now working with C++ and perl understand object oriented programming. I know that Java is realy good for the web and applets, but how is java for sprites and graphics? Are there good built in libraries for...
0
1857
by: James Messick | last post by:
I'm just getting started with MySQL. Got my first db created and can run SQL against it in the phpAdmin program. Is there a tutorial online somewhere that shows me the basics of accessing it from a web page? TIA James
2
1800
by: Kurien Baker Fenn | last post by:
I would like to show the progress of an application using the progress bar in visual basics using the timer.Please help me. Thanks in advance.
1
2289
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are not taughtand I am not getting any Refrences to cope with them. ********Setting in VC++ 6.0 I don'know to apply setting for various/different projects. I am not getting basics out of it .Can u pls tell me how to make a good understanding of...
1
1362
by: ThunderMusic | last post by:
Hi, I need to send some data from my app to a remote server. So, after some searches, I found the best way would be to use web services (unless you can suggest me other ways). The data sent will be like 100 bytes once a week, so not a big load. Asserting the web service is the best way, I would like to know if some of you know of some link to somewhere I can get the basics I need to know for web services, for client and server code,...
14
2298
by: chitu | last post by:
Hi pals, Hope u all of r intersted in C programming.Let start from d basics.
5
4291
by: Jyoti Khalap | last post by:
HI Can Anyone help me out with my problem its very urgent I want to import text file to my visual basics application because everytime its a new text file depending on that text file i want to generate my report thanx in advance jyoti
3
1998
Mague
by: Mague | last post by:
Hey, I need help to some how open a exe file with Microsoft Visual basics. You mite think im trying to steal someone elses project but im not i wont to no how they did it and upgrade it if possible. I can install other programs if needed also i have got Microsoft Visual Basics Express Edition 6 Also please don't Call me a noob (i no i em) Also im onnly 13 so i have learned completly of the internet! Ty Mague!
0
3264
by: babu8880 | last post by:
www.convensysglobal.com/elearn You can login and attend courses and similar resources ask your doubts from experienced engineers in iphone and Objective C Domain You can attend live classes through our website with experienced teachers available world wide. Some among you can also be teachers while others will be your students. This is fun and adds knowledge in the domain of i-Phone Development. We request all users to be active in...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10387
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.