Create table and Import data with for loop to mysql via command line

Mac OSX 28 มี.ค. 2019

for f in $(ls ./*.sql);  do mysql -u root -proot {database_name} < $f; done

แท็ก

Onyx

Just a middle-aged programmer, Can do many things but not the most.