mysql自动执行脚本

linux-shell脚本执行sql脚本

#!/bin/bash

echo "start init db, create_tables & init_tables"

service mysqld stop

sleep 1

service mysqld start

sleep 1 

db_curr=`pwd`

mysql <

你可能感兴趣的:(mysql自动执行脚本)