You are on page 1of 15

NAGROTA BAGWAN

Topic : …………………………………………………...

…………………………………………………..
NAME ………………………………..
CLASS …………………………………..
ROLL NO ……………………………….
SUBMITTED TO ……………………..
SUBMITTED BY ………………………
Contents :
1.Certificate

2.Acknowledgement

3. Introduction about Python

4. Introduction about Python Pandas

5. Introduction about MySQL

6. Introduction about MySQL Connector/Python

7. How to download MySQL Python Connector

8. To check whether mysql-connector is installed/working


properly

9. Steps to connect a python application to our MySQL


database
CERTIFICATE
This is to certify that
Anshaj , Vinayak and Anuj of
class XIi has successfully
completed project work
in
Informatics practices for
the term ending in year
(2019-2020).

Sign of Teacher Sign of Principal

Sign of Examiner School Stamp


Acknowledgement
We express all our sincere thanks to
our institution

Green Field Sr. Sec. School for


providing necessary facilities which
were required for the completion of
this project.

We also acknowledge the support


received from our I.P teacher Mrs.
Mona. Without her help, guidance
and support it could have been
impossible to complete this project.

Lastly We would thank the principal


of our school Mr. Sudhanshu Sharma
for providing an opportunity tinitiate
ourselves with these kind of project.
INTORDUCTION ABOUT PYTHON
Python is an interpreted, high-level, general-
purpose programming language. Created
by Guido van Rossum and first released in
1991, Python has a design philosophy that
emphasizes code readability, notably
using significant whitespace. It provides
constructs that enable clear programming on
both small and large scales. Van Rossum led
the language community until stepping down
as leader in July 2018.
Python features a dynamic type system and
automatic memory management. It supports
multiple programming paradigms,
including object-
oriented, imperative, functional and
procedural, and has a large and
comprehensive standard library.
Python interpreters are available for
many operating systems. CPython,
the reference implementation of Python,
is open source software and has a community-
based development model, as do nearly all of
Python's otherimplementations.Python and
CPython are managed by the non-
profit Python Software Foundation.
INTORDUCTION ABOUT PYTHON PANDAS

Pandas or Python Pandas is Python’s


library for data analysis. Pandas has
derived its from ‘’pannel data system’’
which is an ecometrics term for
multidimensional , structured data sets .
Today’s Pandas has become a popular
choice for data analysis. As we must aware
of that data analysis refers to process of
evaluating big data sets using analytical
and statistical tools so as to discover
useful information and conclusions to
support business decision-making .
Pandas makes available various tools for
data analysis and makes it a simple and
easy process as compared to other
available tools.
The main author of Pandas is
Wes McKinney.
INTORDUCTION ABOUT MySQL
MySQL is a freely available open source
Relational Database Management
(RDBMS) that uses Structured Query
Language (SQL).
It is down-loadable from site
www.mysql.org In a MySQL database ,
Information is stored in Tables. A single
MySQL database can contain many
tables at once and stiore thousands of
individual records. MySQL provides us
witha rich set of features that support a
secure environment for storing ,
maintaining , and accessing data.
MySQL is fast , reliable , scable
alternative to many of the commercial
RDBMSs available today. MySQL was
created and is supported by MySQL AB ,
a company based in Sweden. Sun
Microsystem company acquired the
rights of codebase. The chief inventor of
MySQL was Michael Widenius. MySQL
has been named after Mont’s daughter
My. The logo of MySQL , the dolphin , is
named as “Sakila”.
Introduction to MySQL
Connector/Python

MySQL Connector/Python
enables Python programs to
access MySQL databases, using
an API that is compliant with
the Python Database API
Specification v2.0 (PEP 249). It
is written in pure Python and
does not have any dependencies
except for the Python Standard
Library.
For notes detailing the changes
in each release of
Connector/Python, see MySQL
Connector/Python Release
Notes.
MySQL Connector/Python
includes support for:
 Almost all features provided by
MySQL Server up to and
including MySQL Server
version 5.7.
Connector/Python 8.0 also
supports X DevAPI. For
documentation of the
concepts and the usage of
MySQL Connector/Python with
X DevAPI, see X DevAPI User
Guide.
 Converting parameter values
back and forth between
Python and MySQL data types,
for example
Python datetime and
MySQL DATETIME. We can turn
automatic conversion on for
convenience, or off for optimal
performance.
 All MySQL extensions to
standard SQL syntax.
 Protocol compression, which
enables compressing the data
stream between the client and
server.
 Connections using TCP/IP
sockets and on Unix using
Unix sockets.
 Secure TCP/IP connections
using SSL.
 Self-contained driver.
Connector/Python does not
require the MySQL client
library or any Python modules
outside the standard library.
To download MySQL Python
Connector

MySQL Python Connector is


used to access the MySQL
database from Python , we
need a database driver
provided by MySQL.

Step 1: Open Command


window
Step 2: type pip install
mysql-connector

To check whether mysql-


connector is installed / working
properly

1. Open Python IDLE

2. Type import mysql


3. If no error occurs, it means mysql-
connector is working properly

Steps to Connect a
python application to
our MySQL database

1. Import mysql.connector module

2. Create the connection object


3. Create the cursor object

4. Execute the query

You might also like