Re: Auto extraction of names from the LSB spec sources.
Stuart Anderson wrote:
> Please make notes, and suggestion so that we can improve the documentation.
I didn't do that very well the first time round, and I'm still working out
what I really did to make it work in the end.
> FYI, I Tend to use root on my syste as well
>
> LSBUSER=root
> LSBDB=lsb
> LSBHOME=/home/anderson/LSB
> LSBDBHOST=localhost
I found that the lsbuser and lsbadmin mysql userids worked well if I
changed their passwords with 'mysqladmin -u {lsbuser,lsbadmin} -p password
newpass' first. No login operations were successful before that. Maybe
the INSERT user lines are not setting the passwords correctly for my md5sum
enabled installation?
> > Also Shouldn't the restore target in the dbdump makefile do a 'mysqladmin
> > $(DBOPTS) create lsb' first for the rest of the scripts to work properly?
> > until I did that step manually my 'makes' were all failing with "no such
> > database"
> >
> > Was there a clue I missed?
>
> More like an oversite. I'm the one that normnally uses those targets, and I
> already have the databases created. This results in an error message most
> of the time for me. Some way to check and skip if present would be nice.
>
> Stuart
Here is a patch that worked even better for me.
Index: data/dbdump/makefile
===================================================================
RCS file: /cvsroot/lsb/data/dbdump/makefile,v
retrieving revision 1.3
diff -u -w -r1.3 makefile
--- data/dbdump/makefile 2001/01/03 04:41:33 1.3
+++ data/dbdump/makefile 2001/04/19 20:11:47
@@ -18,7 +18,7 @@
done
restore::
- mysql $(DBOPTS) lsb <setupdb.sql;
+ mysql $(DBOPTS) <setupdb.sql;
for table in [A-Z]*sql ;\
do \
set +e; \
Albert.
--
Albert den Haan, Lead Developer @ Linux Port Team . Corel Corporation
albertd@corel.com (613) 728-0826 x 5318
Reply to: