0

I have this very weird project that my boss gave me. Given my cws.sql file inside "C:/", i need to create a batch file wherein it will automatically create database cws; and use cws; in MySQL Server.
Hope Someone can help me. :'(

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by qualitybrains
0

Create cws.sql with following Lines :

drop database if exists cws;
create database cws;
use cws;

Hope it helps !

0

Wow, tnx~
Because of this i came to a working script:

DROP DATABASE if EXISTS cws;
CREATE DATABASE cws;
USE cws;
SOURCE C:/cwsbackup.sql

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.