Menu

building the database

Help
2001-05-21
2001-05-21
  • Barry Rumsey

    Barry Rumsey - 2001-05-21

    I have spent about a day trying to build the database:
    I enter the following:
    doodaha -v -u doodah -p build doodah
    >Buliding command list
    >Enter Password : I enter my password here
    >Executing commands
    >doodaha: query failed: No database selected.

    How do I setup the database?

     
    • Neil Roberts

      Neil Roberts - 2001-05-21

      This is due to a bug that's been accidentally introduced in version 0.3. It happens because the format of the database was changed for version 0.3, and doodaha tries to check if the database is up to date. But of course this isn't going to work if the database hasn't been made yet.

      I've just fixed this in the CVS version so you can either grab that release or use MySQL to create the database manually:

      at the shell type:
      mysql -u doodah -p
      Enter password: <enter you're password>
      Welcome to the MySQL monitor.  Commands end with ; or \g.
      Your MySQL connection id is 13 to server version: 3.23.22-beta-log

      Type 'help' for help.

      mysql> create database doodah;
      Query OK, 1 row affected (0.00 sec)

      mysql> quit

      This creates an empty database. You can then use doodaha to build the database with 'doodaha -v -u doodah -p build doodah' as before. Hopefully it should work normally after that.

      Sorry for wasting your time, and thanks for reporting the bug.

      - Neil

       
      • Neil Roberts

        Neil Roberts - 2001-05-21

        Actually, that last command would have to be 'doodaha -v -u doodah -p -d doodah build doodah'.

        Sorry.

        - Neil

         

Log in to post a comment.

MongoDB Logo MongoDB