Couldn't make a database in mysql using bash script ??

Amrit Pal Pathak amritpalpathak1 at
Fri Jul 1 15:12:13 UTC 2011

I used following code to make a database in mysql through bash script.but it
couldn't opens the mysql server in terminal just.

mysql -u root -p
echo  "Enter password"
read a
create database test
echo "press ctrl+d "
echo "bye"

any clue ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list