Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Sunday, June 23, 2019

Python - Connect mysql

Python needs a MySQL driver to access the MySQL database. PIP can be used to install "MySQL Connector". PIP is most likely already installed in your Python environment. Go to command prompt and execute below command

C:\> python -m pip install mysql-connector



test-mysql.sql

Sunday, June 16, 2019

Python - Read and write a text file

After coding in Java for nearly 10 years, lately i started learning Python programming and let me tell you it quickly grabbed my interest. So here is the first code for reading and writing a text file using Python. More codes will come along.

read_write_file.py