Vous êtes sur la page 1sur 56

ST.

MARYS CENTRAL SCHOOL


POOJAPPURA, THIRUVANANTHAPURAM

INFORMATICS PRACTICES
RECORD BOOK

NAME: .

CLASS :
BONAFIDE CERTIFICATE

Certified to be the bonafide record work done by


. of Class XII in St.Marys Central
School, Poojappura, Thiruvananthapuram during the year 2017-2018.

Roll.No:

Dated : Teacher in charge .

Submitted for All India Senior Secondary Practical Examination held


in .. at St.Marys Central School, Poojappura,
Thiruvananthapuram.

Internal Examiner External Examiner

PRINCIPAL
CONTENTS

GUI Programming (NetBeans)

Page
Sl.No Programs
Numbers
GUI application to change the colour of a label box, a textfield and a
1.
button

2. GUI application to display a stopwatch

3. GUI application to create a four function calculator

GUI application that allows the user to enter the weight in a text box
4.
and calculate the postage
GUI application that allows the user to enter the sales amount in a
5.
text box and calculate the commission using (if) statement

6. GUI application that returns the sum of the digits using while loop

GUI application that obtains number as argument and displays


7.
reverse of the number

8. GUI application to find the reverse of a string

9. GUI application to find the number of vowels in a string

10. GUI application to enter records in a jTable

11. GUI application to find the occurrence of a particular word

GUI application to find sum, maximum, average of three numbers


12.
using method
Page
Sl.No Programs
Numbers

13. GUI application to change the first letter of a sentence to upper case

14. GUI application to find ncr of a number

GUI application that returns whether a particular string is a


15.
palindrome or not

GUI application to display the employee details and net


16. salary(using class)

17. GUI application to load a record using MySQL

18. GUI application to insert a record using MySQL

19. GUI application to update a record using MySQL

20. GUI application to delete a record using MySQL

MySQL QUERIES

HTML PROGRAMS

NETWORK CONFIGURATION AND


OPEN SOURCE SOFTWARE
GUI PROGRAMMING
(NETBEANS)
1. Create an application to change the colour of a label box, a
textfield and a button.

Source Code :
Color c= Color.WHITE;
int a=l1.getSelectedIndex();
switch(a)
{ case 0 :
c=Color.RED; break;
case 1 : c=Color.GREEN;
break; case 2 :
c=Color.ORANGE;break;
case 3 :
c=Color.YELLOW;break;
case 4 :
c=Color.BLUE; break;
case 5 :
c=Color.GRAY; break;
case 6 :
c=Color.BLACK;break;
}

if(chklb.isSelected())
lb.setBackground(c);
else
lb.setBackground(Color.WHITE);
if(chktb.isSelected())
tb.setBackground(c);
else
tb.setBackground(Color.WHITE);
if(chkb.isSelected())
b.setBackground(c);
else
b.setBackground(Color.WHITE);

Output :
2. Design an application to display a stopwatch

Source Code:

Timer t =new Timer(1000, new ActionListener()


{
public void actionPerformed(ActionEvent e)
{ int s =Integer.parseInt(sec.getText());
int m =Integer.parseInt(min.getText());
int h =Integer.parseInt(hr.getText());
s++;
if (s == 60)
{ s=0;
m++;
if (m==60)
{ m=0;
h++;
if (h==24) h=0;
}
} sec.setText(""+s);
min.setText(""+m);
hr.setText(""+h);

}
});
t.start();
Output :
3. Create a four function calculator

Source Code:

int a =Integer.parseInt(t1.getText());
int b =Integer.parseInt(t2.getText());
String c =new String(t3.getText());
int d = 0;
if (c.equals("+")) {
d = a+b;}
if (c.equals("-")) {
d = a-b;}
if (c.equals("*")) {
d = a*b;}
if (c.equals("/")) {
if(b==0){
JOptionPane.showMessageDialog(this,Division by zero is not possible);}
else{
d = a/b;}}
r.setText(""+ d);

Output :
4. Design an application that allows the user to enter the weight in a text
box and calculate the postage

Source Code:
float a = Float.parseFloat(t1.getText());
double p=0;
if(a<=15){
r.setText("The Postage is Rs. 1.40/-");
}
else if(a<=100){
r.setText("The Postage is Rs. 2.70/-");
}
else if(a<=250){
r.setText("The Postage is Rs. 4.00/-");
}
else if(a<=500){
r.setText("The Postage is Rs. 7.50/-");
}
else if(a>500){
p=(a*0.02);
r.setText("The Postage is Rs. "+p+"/-");
}
else
{
JOptionPane.showMessageDialog(Enter the weight);
}
Output :
5. To calculate the commission using (if) statement

Source Code:
String txt=t1.getText();
double sales,commision;
sales=Double.parseDouble(txt);
if(sales>30000)
commision=sales*0.15;
else
if(sales>22000)
commision=sales*.10;
else{
if(sales>12000)
commision=sales*0.07;
else{
if(sales>5000)
commision=sales*0.03;}
else
commision=0;}
result.setText("The Commision is Rs "+commision+"/-");
Output :
6. Create an application that returns the sum of the digits using while loop

Source Code:
int n =Integer.parseInt(t1.getText());
int a ;
int r =0;
while (n !=0)
{ a = n % 10;
r =r+a;
n =n /10;
re.setText(""+r);
}

Output :
7. Create an application that obtains number as argument and displays
reverse of the number

Source Code:
Generated Code
int rev(int n)
{ int a= 0;
int r=0;-

while (n !=0)
{ a = a % 10;
r =r*10+a;
n=n/10;
}
return r;
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
int n =Integer.parseInt(t1.getText());
int b=rev(n);
re.setText(""+b);
}
Output :
8. To find the reverse of a string

Source Code:

String a=t1.getText();
String b="";
for(int i=a.length()-1;i>=0;i--){
b=b+a.charAt(i);
}
JOptionPane.showMessageDialog(this, "Reverse Of The Character "+a+" is "+b);
Output :
9. To find the number of vowels in a string

Source Code:

public int vowels(String s)


{

int a = s.length();
String d = new String();
d= s.toLowerCase();
int c=0;
while(a>0)
{
char b=d.charAt(a-1);
if((b=='a') ||( b=='e' )||( b=='i') ||( b=='o') ||( b=='u'))
{ c++;}
a--;
}
return c;
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)


{
String s=new String(t1.getText());
int x= vowels(s);
result.setText("The Number Of Vowels In The String"+" "+s+" "+"is"+" "+x);
}

Output :
10. To enter records in a jTable

Source Code:

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

Object[] t ={t1.getText(),t2.getText()};
DefaultTableModel m =(DefaultTableModel)j.getModel();
m.addRow(t);
t1.setText("");
t2.setText("");

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

DefaultTableModel m =(DefaultTableModel)j.getModel();
int a =Integer.parseInt(t3.getText());
m.removeRow(a-1);
Output :
11. To find the occurrence of a particular word

Source Code:

String s=t1.getText();
char c=t2.getText().charAt(0);
int count=0;
for(int i=0;i<s.length();i++)
{
if(s.charAt(i)==c)
count++;
}
JOptionPane.showMessageDialog(this,"Occurance Of The Character "+s+" is "+count);

Output :
12. To find sum, maximum, average of three numbers using method

Source Code:

float sum( float a, float b, float c)


{
float d= a + b + c ;
return d ;
}
float avg(float a,float b,float c)
{
float d=(a+b+c)/3;
return d;
}

float max(float a,float b,float c)


{ float h=0;
if((a>b)&&(a>c))
h = a;
else if(b>c)
h = b;
else
h = c;
return h;
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


float a=Float.parseFloat(t1.getText());
float b=Float.parseFloat(t2.getText());
float c=Float.parseFloat(t3.getText());
float d=sum(a,b,c);
q.setText(""+d);
}

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


float a=Float.parseFloat(t1.getText());
float b=Float.parseFloat(t2.getText());
float c=Float.parseFloat(t3.getText());
float d=max(a,b,c);
w.setText(""+d);
}

private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {


float a=Float.parseFloat(t1.getText());
float b=Float.parseFloat(t2.getText());
float c=Float.parseFloat(t3.getText());
float d=avg(a,b,c);
e.setText(""+d);
}

Output :
13. To change the first letter of a sentence to upper case

Source Code:

String str=t1.getText();
int len=str.length();
char ch=Character.toUpperCase(str.charAt(0));
str=ch+str.substring(1);
for(int i=2;i<len-1;i++)
{
if(str.charAt(i)==' ')
{
ch=Character.toUpperCase(str.charAt(i+1));
str=str.substring(0,i+1)+ch+str.substring(i+2);
}
}
JOptionPane.showMessageDialog(null,str);
Output :
14. To find nCr of a number

Source Code:

int fact(int n)
{int p=1;
for(int i =1; i<= n ; i++)
{p* = i ;}
return p;
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
int n=Integer.parseInt(t1.getText());
int r=Integer.parseInt(t2.getText());
int c=n-r;
int factn=fact(n);
int factr=fact(r);
int factc=fact(c);
int ncr = (factn /(factc*factr));
r1.setText(" "+ncr);
}
Output :
15. Create an application that returns whether a particular string is a
palindrome or not

Source Code:

public boolean palin(String s)


{StringBuffer re =new StringBuffer(s).reverse();
return s.equals(re.toString());
}
public boolean palin2(String s)
{StringBuffer re =new StringBuffer(s).reverse();
return s.equalsIgnoreCase(re.toString());
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


String s = new String();
s =t1.getText();
if (palin(s))
r.setText(s + "is palindrome");
else if(palin2(s))
r.setText(s + "is palindrome if you ignore case");
else
r.setText(s + "is not a palindrome");
}
Output :
16. Display the emp details and net salary

Source Code:

class employee
{int empno;
String empname;
String empdesig;
public employee()
{empno =0;}

public employee(int eno,String ename, String edesig)


{empno = eno;
empname = ename;
empdesig =edesig;
}

public void display()


{System.out.println("employee no ="+empno);
System.out.println("employee name ="+empname);
System.out.println("employee designation ="+empdesig);
}
}

class salary extends employee


{
int basic;
}

public salary(int eno, String ename, String edesig,int b)


{
super(eno ,ename,edesig);
basic = b;
}

public float calculate()


{float da = (float) (basic * 0.1);
float hra =(float) (basic * 0.15);
float salary =basic+da+hra;
float pf = (float) (salary * 0.08);
float netsalary = salary -pf;
super.display();
System.out.println("netsalary ="+netsalary);
return netsalary;
}
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


int a =Integer.parseInt(t1.getText());
String b = t2.getText();
String c = t3.getText();
float d =Float.parseFloat(t4.getText());
salary s = new salary(a,b,c,(int) d);
s.calculate();
t.setText(""+s);

OUTPUT

employee no =51285 employee


name =RAKI employee
designation =CLERK netsalary
=6.053066
17. To load a record using mysql
Source Code:

import java.sql.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.JOptionPane;

public class IUD_Queries extends


javax.swing.JFrame { Connection c=null;
Statem
ent
s=null;
Result
Set
rs=null
;

private void jButton1ActionPerformed(java.awt.event.ActionEvent


evt) {
try{ Class.forName("java.sql.Driver");
c=DriverManager.getConnection("jdbc:mysql://localhost:3306/rrr",
"root",""); s=c.createStatement();
String q="select * from department where Dept_No
="+t1.getText()+";";
rs=s.executeQuery(q);

if(rs.next())
{
String a=rs.getString("Dept_No");
String b=rs.getString("Dept_Name");
String c=rs.getString("Location");
t2.setText(b);
t3.setText(c);
b2.setEnabled(true);
b3.setEnabled(true);
b4.setEnabled(true);
}
else{
JOptionPane.showMessageDialog(null,"No Records Found");
}
}
catch(Exception e){
JOptionPane.showMessageDialog(null,e.getMessage());}
}
18. To insert a record using mysql

Source Code:

import java.sql.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.JOptionPane;

public class IUD_Queries extends javax.swing.JFrame {


Connection c=null;
Statement s=null;
ResultSet rs=null;
int ans = JOptionPane.showConfirmDialog(null,"Surely Want toInsert The Record?");
if (ans==q3.YES_OPTION) {
try{
s=c.createStatement();
String q = "INSERT INTO department values(" + t1.getText() +
","+t2.getText()+","+t3.getText()+");";
s.executeUpdate(q);
JOptionPane.showMessageDialog(null,"Record Successfully Inserted");
}
catch(Exception e){
JOptionPane.showMessageDialog(null,e.getMessage());
}}

Output :
19. To update a record using mysql

Source Code:
import java.sql.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.JOptionPane;

public class IUD_Queries extends javax.swing.JFrame {


Connection c=null;
Statement s=null;
ResultSet rs=null;
int ans = q3.showConfirmDialog(null,"Surely Want to Update The Record?");
if (ans==q3.YES_OPTION)
{
try{
s=c.createStatement();
String q = "update deparment SET Dept_Name = '"+t2.getText()+"',Location ='"+
t3.getText()+"'where Dept_No ="+t1.getText()+";";
s.executeUpdate(q);
JOptionPane.showMessageDialog(null,"Record Successfully Updated");
}
catch(Exception e){
JOptionPane.showMessageDialog(null,e.getMessage());
}
}

Output :
20. To delete a record using mysql

Source Code:

import java.sql.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.JOptionPane;

public class IUD_Queries extends javax.swing.JFrame {


Connection c=null;
Statement s=null;
ResultSet rs=null;
int ans = q3.showConfirmDialog(null,"Surely Want to Delete The Record?");
if (ans==q3.YES_OPTION){
try{
s=c.createStatement();
String q = "DELETE FROM department where Dept_no ="+t1.getText()+";";
s.executeUpdate(q);
JOptionPane.showMessageDialog(null,"Record Successfully Deleted");
}
catch(Exception e){
JOptionPane.showMessageDialog(null,e.getMessage());
} }

Output :
MY SQL
1. Write a query to create a database.
Create database employee;

2. Write a query to use a database.


use employee;

3. Write a query to create a table using the following data.

Column name Datatype Constraints


Emp_no Int(2) Not null primary key
Ename Varchar(10) -
Job Varchar(20) -
Salary Int(6) Default = 1000
Commission Int(5) -
Dept_no Int(2) -

Create table emp(emp_no int(2) not null primary key,ename varchar(10), job
varchar(20), salary int(6) default=1000, commission int(5), dept_no int(2));

4. Write a query to display the structure of the table emp.


Desc emp;

5. Write a query to insert records into table emp.

insert into emp values( 1,Anjana, Manager, 35000, 1000, 10);

emp_no ename job salary commission dept_no

1 Anjana Manager 35000 1000 10


2 Balu Clerk 9000 Null 30
3 Cyric Cashier 9000 Null 34
4 Dany Accountant 10000 900 25
5 Eby Superintendent 20000 2000 98
6 Fathima C.A 38000 5000 87
7 Ganga Engineer 40000 2000 44
8 Harisha Superintendent 20000 2000 98
9 Haritha Cashier 9000 Null 34
10 Jacob Accountant 10000 900 25
11 Krishna Clerk 9000 Null 30
12 Lekshmi Accountant 10000 900 25
13 Manu Superintendent 20000 2000 98
6. Write a query to update the emp_no of Haritha.
update emp set ename = haritha where emp_no = 8;

7. Write a query to add a column name hiredate with datatype date.


alter table emp add hiredate date;

8. Write a query to modify the datatype of hiredate.


alter table emp modify hiredate varchar(10);

9. Write a query to drop the column hiredate.


alter table emp drop hiredate;

10. Write a query to display all the details of employees who belong to dept_no 34.

select * from emp where dept_no = 34;

11. Write a query to display the details of employee where name starts with E.
select * from emp where ename like e%;

12. Write a query to display the details of employee whose salary between 10000
and 40000.
select * from emp where salary between 10000 and 40000;

13. Write a query to count the number of rows in the emp table.
select count(*) from emp;
14. Write a query to find the sum of salary of employee in the department number
87 and 94.
select sum(salary) from emp where dept_no in (87 ,94);

15. Write a query to find the maximum salary of employee whose name starts with
H;
select max(salary) from emp where ename like h%;

16. Write a query to find the average salary of employee in the department number
87 and 94.
select avg(salary) from emp where dept_no in (87 ,94);

17. Write a query to display the number of employee and sum of salary group by
department number.
select dept_no, count(*), sum(salary) from emp group by dept_no;

18. Write a query to display minimum salary, sum of salary, count(commission)


group by commission. These details should be only for employee having
count(commission)<3.
select min(salary),sum(salary),count(distinct commission) from emp group by
commission having (count(commission) <3);

19. Write a query to display employee name, sum of salary group by employee
name and order the rows by employee name is descending order.
select ename,sum(salary) from emp group by ename order by ename desc;

20. Write a query to create a table customer with the following data.
Column name Datatype Constraints
Cust_no Int(2) Not null primary key
Cust_id Int(10) -
Cust_name Varchar(20) -
Dept_no Int(2) Foreign key

create table customer(Cust_no int(2) not null primary key, Cust_id int(10),
Cust_name varchar(20), foreign key(Dept_no) references emp(Dept_no) on delete set
null);

21. Write a query to insert records into table customer.


insert into customer values( 1,101,Anu, 10);

Cust_no Cust_id Cust_name Dept_no

1 101 Anu 10
2 102 Athira 30
3 103 Anitha 34
4 104 Arunima 25
5 105 Anjali 98

22. Write a query to display customer number, customer name and corresponding
employee name for each customer.
Select c.cust_no, c.cust_name, e.ename from customer c, emp e where
c.dept_no=e.dept_no;

23. Write a query to create equijoin on common field of two tables.


Select * from emp e join customer c on(e.dept_no=c.dept_no);
24. Write a query to display the Cartesian product of emp and customer.
Select * from emp,customer;

25. Write a query to display customer id, customer name for customers having
department number 10.
Select cust_id, cust_name from customer group by dept_no having dept_no = 10;

26. Write a query to make customer id as the primary key of the table customer.
Alter table customer add primary key(cust_id);

27. Write a query to increase the length of customer name column from 20 to 30.
Alter table customer modify cust_name varchar(30);

28. Write a query to change column customer number to scl_no of the table
customer.
Alter table customer change cust_no scl_no int(5);

29. Write a query to delete the table customer.


Drop table customer;

30. Write a query to make the changes permanent.


Commit;
HTML
PROGRAMS
1.Create a webpage about global warming

<html>
<head>
<title>
Global Warming
</title>
</head>
<body bgcolor="yellow"link="magenta"alink="purple"vlink="orange">
<h1 align="center">
<font face="Monotype Corsiva" color="red" size="10">
GLOBAL WARMING
</font>
</h1>
<hr align="center"noshade size="2"width="500"color="brown">
<img src="global_warming_panic1.jpg" border="1" align="middle" height="300"
width="300">
<p align="justify" >
<font color="blue" size="6">
<b>Global warming</b> is the rise in the average temperature of the Earth's climate system
and its related effects.Over the past 50 years, the average global temperature has increased
at the fastest rate in recorded history.
</font>
</p>
<h2 size=7>
<i>
<u>
CAUSES
</u>
</i>
</h2>
<font size="6">
<ul type=square>
<li>Greenhouse gases</li>
<li>Aerosols and soot</li>
<li>Solar activity</li>
</ul>
<h3 >
EFFECTS
</h3>
<ol start="24"type="A">
<li>Extreme weather</li>
<li>Sea level rise</li>
<li>Habitat inundation</li>
</ol>
For more details,log on to
<br>
<a href="https://www.google.com">
Global warming
</a>
</font>
</body>
</html>
2.Create a webpage having a table containing student details

<html>
<head>
<title>
School
</title>
</head>
<body>
<h1 align="center">
<font face="Comic Sans MS" color="purple" size="10">
Student details
</h1>
<hr align="center"noshade size="2"width="500"color="brown">
<table border="2"align="center"cellpadding="7"cellspacing="10">
<tr>
<th bgcolor="#E3E4FA">ADMN. NO:</th>
<th bgcolor="#E3E4FA">NAME</th>
<th bgcolor="#E3E4FA">TOTAL MARKS</th>
</tr>
<tr>
<td>2456</td>
<td>Shyam</td>
<td>97</td>
</tr>
<tr>
<td>4567</td>
<td>Kiran</td>
<td>84</td>
</tr>
<tr>
<td>3789</td>
<td>Nayana</td>
<td>60</td>
</tr>
<tr>
<td>3568</td>
<td>Anupama</td>
<td>77</td>
</tr>
</table>
</body>
</html>
3.Create a html document with form

<html>
<head>
<title>form
</title>
</head>
<body>
<form name="newform" action="globalwarming.html"method="get">
<b>ADMISSION ENQUIRY FORM</b>
<br>
Name
<input type="text"name="tf1">
<br>
Gender
<input type="radio" name="r1" >Male
<input type="radio" name="r2" >Female
<br>
E=mail
<input type="text" name="tf2 ">
<br>
Stream
<input type="checkbox" name="c1" >Science
<input type="checkbox" name="c2" >Commerce
<br>
Comments
<br>
<textarea name="comment" rows="5"cols="50">
</textarea>
<br>
<input type="button"name="b1"value="Submit">
<input type="button"name="b2"value="Reset">
</form>
</body>
</html>
AD:\IISSIOX EXQL"'IRY FOR.\I
X.u=I I
Gniikl-
E=rruul
).{alc 9F =--
Strram 8 Sc,mcr fiJ Comm=c
Comments

---- -
I Submrt]IReseq
J
NETWORK CONFIGURATION
AND
OPEN SOURCE SOFTWARE
OPEN SOURCE SOFTWARE
Definition: The categories of software / programs whose licenses do not impose much
condition.
Features:
1. Freedom to run and use the software.
2. Modify the program.
3. Redistribute copies of either original or modified program(without paying royalties to
previous developers). It can be freely used for modifications, but it does not have to
be free of charge. Its source code is available.

Criteria for the distribution of open source software:


1. Free distribution.
2. Source code.
3. Derived works.
4. Integrity of the Authors Source code.
5. No discrimination against fields of endeavor.
6. Distribution of License.
7. License must not be specific to a product.
8. License must not restrict other software.

The open source software used in our school is:


Net Beans Net Beans began in 1996 as verify, a Java Integrated Development
Environment (IDE) student project, under the guidance of the Faculty of Mathematics and
Physics at Charles University in Prague. In 1999 it was bought by Sun Microsystems which
open-sourced the Net Beans IDE in June of the following year. The Net Beans community
has since continued to grow, thanks to individuals and companies using and contributing to
the project. Net Beans refers to both a platform framework for Java desktop applications,
and an IDE for developing applications with Java, JavaScript, PHP, Python, Ruby, C, C++,
and others.
Firefox Firefox is a free and open source web browser produced by Mozilla Foundation.
Firefox runs on various versions of GNU / Linux, Mac OS X, Microsoft Windows and many
other Unix-like operating systems.
MySQL:
MySQL is a freely available open source Relational Database Management System
(RDBMS) that uses Structured Query Language (SQL).
MySQL can be downloaded from site www.mysql.org. MySQL is created and
supported by MySQL AB, a company based in Sweden.
In MySQL database, information is stored in tables. A single MySQL database can
contain many tables at once and store thousands of individuals records.
MySQL provides you with a rich set of features that support a secure environment for
storing, maintaining and accessing data.
MySQL is a fast, reliable, scalable alternative to many of the commercial RDBMS
available today.

Structured Query Language (SQL)


In order to access data within the MySQL database, all the programmers and users
must use, Structured Query Language (SQL).
SQL is the set of commands that is recognized by all RDBMS.
The Structured Query Language (SQL) is a language that enables you to create and
operate on relational database, which are sets of related information stored in tables.
The SQL has proved to be a standard language as it allows users to learn one set of
command and use it to create, retrieve, alter and transfer information regardless of
whether they are working on a PC, a workstation, a mini, or a mainframe.

MySQL Database System is a combination of a MySQL server and a MySQL database.


MySQL Database System operates using client/server architecture, in which the server runs
on the machine containing the databases and clients connects to the server over a network.
SQL Server and Clients:
MySQL Server:
Listens for client request coming in over the network.
Accesses database contents according to those requests.
Provides contents to the clients

MySQL Clients:
MySQL clients are programs that connect to the MySQL server and issue queries in a
pre-specified format.
MySQL is compatible with the standards based SQL. The client program may contact
the server programmatically or manually.

Features of MySQL:
1. Speed: If the server hardware is optimal, MySQL runs very fast.
2. Ease of use: MySQL is a high performance, relatively simple database system.
3. Cost: Available free of cost.
4. Query Language Support: Understands standard based SQL.
5. Portability: Provides portability as it has been tested with a broad range of different
compiler and can work on many different platforms.
6. Data Types: Provide many data types to support different types of data.
7. Security: Offers a privilege and password system that is very flexible and secure.
8. Localization: The server can provide error messages to clients in many languages.
9. Connectivity: Clients can connect to MySQL server using several protocols.
10. Client and Tools: Provides command line programs such as mysql dump and
mysql admin, and graphical programs such as MyQL Administrator and MySQL
Query Browser.

Advantages of MySQL:
1. Reliability and performance: MySQL is very reliable and high performance
relational database management system.
2. Availability of source: MySQL source code is available that is why now we can
recompile the source code.
3. Cross-platform support: MySQL supports more than twenty different platforms
including the major Linux distribution. Mac OS X, UNIX and Microsoft Windows.
4. Powerful uncomplicated software: The MySQL has most capabilities to handle
most corporate database applications and is very easy and fast.
5. Integrity: MySQL provides forms of integrity checking.
6. Authorization: MySQL DDL includes commands for specifying access rights to
relations and views.

Vous aimerez peut-être aussi