Something is wrong is your mysql settings I believe. But I'm not quite
sure. I would suggest using the ruby script it more likely works called
documentationmaker.rb  Type ruby documentationmaker and then specify the
information asks and it should get the info.


On Wed, Nov 20, 2013 at 11:44 AM, David LeBauer <notifications@github.com>wrote:

> In local/make_documentation_files/readme.txt:
>
> > @@ -0,0 +1,11 @@
> > +How to Use Script:
> > +First open up the .cpp file and edit the connection to the details specified to your database.
> > +  (mysql_real_connect(conn,"localhost","root","password","INFORMATION_SCHEMA",0,NULL,0)== NULL).
> > +  localhost should be changed to the place hosting the database.
> > +  root should be changed to the user accessing the database.
> > +  password should be the pass word of the user accessing the database.
> > +Second compile your script. g++ querymaketables.cpp `mysql_config --cflags --libs` -o querymaketables
> > +Third run your script ./querymaketables
> > +The files should be generated in the fire of your script. querymaketables will generate information about each table
> > +query.c will make a series on comments on each table. You should run query.c first.
> > +
>
> @jschen3 <https://github.com/jschen3> could you please clarify what you
> mean by "query.c will make a series of comments on each table, you should
> run query.c first`. Do you mean that I need to first change the database
> settings (host, username, password), second compile query.c (if so, how?)
> and then execute the resulting output file?. Would it look something like:
>
> ## first edit settings in query.c and querymaketables.cpp
> gcc query.c  `mysql_config --cflags --libs` -o -o query
> ./query
>  g++ querymaketables.cpp `mysql_config --cflags --libs` -o querymaketables
> ./querymaketables
>
> I am getting a segmentation fault when running ./querymaketables. Any
> ideas?
>
> What are the settings required to compile gcc? Am I missing something?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/PecanProject/bety/pull/3/files#r7799019>
> .
>