Good Day,
This is probably a stupid question.... Here goes. I am working at the
command line in linux... Is there a way to write a simple "batch" type
file using a standard text editor?
<------Begin Script--------->
mysql -u root -ppassword;
create database somedatabase;
use somedatabase;
create table sometable;
blah, blah, blah?
<------ End Script --------->
I have a need to create databases, add users, build tables... I am now
using phpmyadmin but would like to just build an install script...
This would take installation of our projects from an hour or so to
minutes.
Any help would be appreciated... Don't worry about the syntax... I
will look that up... I just can't get past
mysql -u root -password
I get a mysql prompt> Good, but not what was intended... I didn't
want to have to resort to attempting to build a C prog.
I just want to work from the shell...
Thanks in advance,
Thomas
Hellopages.com
This is probably a stupid question.... Here goes. I am working at the
command line in linux... Is there a way to write a simple "batch" type
file using a standard text editor?
<------Begin Script--------->
mysql -u root -ppassword;
create database somedatabase;
use somedatabase;
create table sometable;
blah, blah, blah?
<------ End Script --------->
I have a need to create databases, add users, build tables... I am now
using phpmyadmin but would like to just build an install script...
This would take installation of our projects from an hour or so to
minutes.
Any help would be appreciated... Don't worry about the syntax... I
will look that up... I just can't get past
mysql -u root -password
I get a mysql prompt> Good, but not what was intended... I didn't
want to have to resort to attempting to build a C prog.
I just want to work from the shell...
Thanks in advance,
Thomas
Hellopages.com
Comment