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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
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.
Read the perldoc for DBD::mysql. This shows you how to specify a Mysql database connection to a remote database.