#!/bin/bash
HOSTNAME="IP"
PORT="3306"
USERNAME="root"
PASSWORD=""
DBNAME="database"
TABLENAME="tablename"
for((i=1;i<=1000000;i++));
do
insert_sql="insert into ${TABLENAME} values('$i+testtsestrststt',$i)"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} ${DBNAME} -e "${insert_sql}"
done