Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
64 views

Mysql Python Connector

The document provides instructions for installing Python and MySQL on a Windows system. It details downloading and running installers for both, setting the path variable for Python, and using pip to install the mysql-connector module. It also shows commands for creating a MySQL database called "moksh" and accessing it from the Python shell.
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

Mysql Python Connector

The document provides instructions for installing Python and MySQL on a Windows system. It details downloading and running installers for both, setting the path variable for Python, and using pip to install the mysql-connector module. It also shows commands for creating a MySQL database called "moksh" and accessing it from the Python shell.
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 8

·0 INSTALL PYTHON

·1 Create a folder named python37 in c:\


·2 Open python.org
·3 While installing python click on the check box
Add python to path variable
·4 Python is successfully installed in c:\python37
folder
·5 You can open mycomputer and check there is
scripts folder inside python37 folder and pip is
installed in it.
·6 INSTALL MYSQL

·7 Open www.mysql.com
·8 Click products
·9 Click My community Editions
·10 Click Mysql download Edition
·11 Cllick Mysql community server
·12 Scroll down Click on Go to download
page
·13 Follow the screenshots for rest of the
installation
Click on no thanks start download
·14
In the example given below password is sony
·15
After successful installation of Mysql, goto start button and type MySQL 8.0 and select
mysql8.0 command line client, select run as administrator

To Create a database type the command

Create database moksh


Type show databases

So you have installed MySQL and created a database named moksh

·16 Open command prompt (black screen)


·17 Type c:\python37\scripts
·18 Pip install mysql-connector

·19 Open python in shell mode(black screen)


·20 Go to start button and type python
·21 Select the option that has screen in black color- Python 3.7(32 bit).In this case
option 3 OR OPEN PYTHON IDLE

·22 Click on run as administrator option

·23 Type the following commands

·24
·25
·26

·27

You might also like