skip to Main Content

I am trying to import a csv file to mysql using python. I am getting an error ' TypeError: not enough arguments for format string' – Phpmyadmin

I am using phpmyadmin for mysql databse. import csv import MySQLdb import pymysql db = pymysql.connect( host="127.0.0.1", port=3308, user="root", passwd="", db="database_name" ) cursor = db.cursor() csv_data = csv.reader(r'E:py_docsfile101.csv') next(csv_data) for row in csv_data: cursor.execute('INSERT INTO table_name(A, B, C, D, E,…

VIEW QUESTION

Shell script for copying the specific file from csv to another directory with same folder hierarchy structure – CentOS

I have a list of files to copy from smb server to my centos7 hard drive from csv missing.csv Filepath ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00001.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00002.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00003.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00004.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00005.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00006.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00007.jpg Now i need to copy the files from the csv list (i.e)filepath column…

VIEW QUESTION
Back To Top
Search