Menu

No DB wanted

Help
Anonymous
2002-03-21
2002-03-26
  • Anonymous

    Anonymous - 2002-03-21

    It is possible to have lxr 0.9.1 use only the xref file ( as in 0.3.0 ) instead of using a database ??? If so, please post the howto.

     
    • Malcolm Box

      Malcolm Box - 2002-03-24

      No, I'm afraid it's not possible.  Of course, if you wanted to add a backend for DB files then please do - the outlines of the code are there already.

      Both MySQL and Postgres are free and easy to setup though.

       
    • Anonymous

      Anonymous - 2002-03-25

      Ok, so I scrapped my laziness and tried to used my remote mysql db. However after going through Mysql.pm and ilk in hopes to find the proper syntax to DBI->connect, I am still not able to connect to my remote mysql.

      Here is some configs:
      'baseurl' => 'http://kathmandu/lxr',
      'virtroot' => '/'
      'dbname' => 'dbi:mysql:dbname=lxr@HOSTNAME',
      'dbuser' => 'lxr',
      'dbpass' => '',

      Here is the error:
      kathmandu:/usr/local/lxr#./genxref --url=http://kathmandu/lxr --allversions
      Statement unlikely to be reached at ./genxref line 146.
              (Maybe you meant system() when you said exec()?)
      DBI->connect(dbname=lxr@HOSTNAME) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at lib/LXR/Index/Mysql.pm line 35
      [Mon Mar 25 14:36:34 2002] fatal: LXR::Index::Mysql, line 35: Can't open connection to database

      <h4 align="center"><i>** Fatal: Can't open connection to database
      </i></h4>

      BTW I do not have the option to install MySQL locally due to my Security Policy.

       
      • Malcolm Box

        Malcolm Box - 2002-03-26

        Read the perldoc for DBD::mysql.  This shows you how to specify a Mysql database connection to a remote database.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.