Mysql Import Shell Script

#!/bin/bash

mysql -u root -p pasword<< EOF

CREATE DATABASE db_name;
USE db_name;
SET autocommit=0;
SET foreign_key_checks=0;
SET unique_checks=0;
SOURCE db_name.sql;
EOF

Yorum Gönder

Daha yeni Daha eski