Skip to content

Read data from a text file and insert into mysql database

Notifications You must be signed in to change notification settings

fahimbinkhair/python-for-beginner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python3-read-file

Description

This is a simple application to read data from a text file then save them into a mysql table

Requirement

  1. Python 3
  2. sudo apt-get install python3-mysql.connector

MySql Table

CREATE TABLE student(idint(11) NOT NULL AUTO_INCREMENT,namevarchar(45) NOT NULL,address_line_1varchar(99) NOT NULL,address_line_2varchar(99) DEFAULT NULL,postcodevarchar(9) NOT NULL,when_created datetime(6) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1

About

Read data from a text file and insert into mysql database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages