Upload
bhumivaghasiya
View
80
Download
0
Tags:
Embed Size (px)
DESCRIPTION
It gives all information about connectivity
Citation preview
11-Sep-2014Thursday
Connectivity With MySQL
• Introduction• What is MySQL• Create Database• Basic MySQL Operations• Basic MySQL Functions• Benefits• Drawbacks• Conclusion
Points of Discussion2
Introduction3
• A database is an application that manages data and allows fast storage and retrieval of that data.
A database is a collection of information that is organized so that it can easily be accessed, managed, and updated.
Example of Database
• Sql Server
• Oracle• FoxPro• MongoDB• Microsoft Access
4
MySQL
What is MySql
MySQL
MySql6
• MySQL is a database.
• The data in MySQL is stored in database objects called tables.
• A table is a collections of related data entries and it consists of columns and rows.
• Databases are useful when storing information categorically.
Continue
• Download MySQL Database
• If you don't have a PHP server with a MySQL Database, you can download MySQL for free here:
•
http://www.mysql.com/downloads/index.html
7
Continue
• MySQL works on many operating systems and with many languages including PHP, PERL, C, C++, JAVA etc.
• MySQL is very friendly to PHP, the most appreciated language for web development.
8
How to Create Database?
MySQL
How to Create Database10
Give Database Name11
Give Table Name & No of Columns
12
Field Name13
Table Created14
Structure of Table15
Basic MySQL
Operation
MySQL
Basic Operations
• Create table• Insert records• Retrieve records• Update records• Delete records• Modify table• Join table• Drop table
17
Basic MySQLFunctions
MySQL
Basic MySQL Functions
• mysql_connect()• mysql_select_db()• mysql_query()• mysql_featch_row()• mysql_featch_array()• mysql_affected_row()• Mysql_close()
19
Mysql_connect()
• Purpose:-»This Function is used to connect
your application with database.
• Syntax:-
20
Bool mysql_connect(“servarname”,”username”,”password”);
Mysql_select_db()
• Purpose:-»This Function is used to select
particular database from phpmyadmin database.
• Syntax:-
21
bool mysql_select_db(“Databse Name”);
Mysql_query()
• Purpose:-» Sends the specified SQL query to
the database specified by the resource identifier. The retrieved data are returned by the function as a MySQL result set.
• Syntax:-
22
Record set mysql_query(“sqlquery”);
Benefits
MySQL
Benefits
• Open Source
• Easy, Fast and High Performing
• Cross Platform Supports
• Occupies very less disk space.
24
Drawbacks
MySQL
Drawbacks
• Developers accuse MySQL for not having a good developing and debugging tool compared to paid databases.
• MySQL cannot work efficiently with large databases.
26
Conclusion
MySql is an Open Source database Management System and Support Major features of the
RDBMS.
There is no need of Purchase any other thing, we have to just install and done.
27
Demo
MySQL
Reference
www.mysql.com www.slideshare.com www. Wikipedia.com
29
That’s All for PHP With
MySQLThank You…!!!
MySQL