Files
note/mysql-db
TLINDEN 142ff12b12 FIXED: oops - the new suptopic feature confused the commandline-mode of
note! quickly corrected! so subtopics also available from command-
                line.
FIXED:          a small bug fiyed, it was impossible to use -D or -I from command-
                line, if $ALWAYS_INT was turned on, now it is.
FIXED:          fixed problem with local/global variable $time, which confused
                the script under certain circumstances, now $time is no more global,
                it will be read in (using &getdate) locally by &new and &edit.
CHANGED:        The Topic separator is no longer hardcoded, one can customize
                it using the $TopicSep variable, the default is now /, the backslash
                will no mor work!
CHANGED:        use perl buildin localtime() function instead of
                GNU date, which is possibly not installed on every target
                system (i.e. win32), therefore better portability!
CHANGED:        use now the strict module
ADDED:          Support for subtopics added (and sub-sub-..-topics).
CHANGED:        Removed the "T" command, it is now obsolete.
CHANGED:        behavior of list command changed, now shows topics as well as
                notes under the current topic(if there are some).
CHANGED:        The ".." command takes you now one level higher in your topic-
                structure.
ADDED:          A new config option $PreferredEditor, which you can use to
                specify your own choice of editor.
FIXED:          A bug at line 769 causing single note where smaller than note-
                listings
2012-02-10 20:11:22 +01:00
..

README for the mysql version of note

Requirements
============

        You need the following things:
                o perl installed (5.004x)
                o mysql database installed and running
                o Mysql perlmodule (you can find it on 
                  http://www.mysql.org) PLEASE NOTE:
                  It needs the Module "Mysql". The install.sh
		  script will install it for you directly from
		  CPAN if you like. Newer versions
                  are DBI, which you can also use to access
                  mysql databases. If you want to use it, you
                  have to rewrite the program. Please let me
                  know, if you did it :-)
                o permissions to create a new database and
                  to write data to this database.



Installation
============

        First, make sure all these things above are ok.
        You can use the script "install.sh" to create a new
        database and the table structure. You might edit 
        the script before running it.

        If you getting trouble, i.e. if you have not the 
        required permissions to do that, please make sure,
        you can. 
        As user root, you have to give your user the 
        neccessary permissions. Please refer to the mysql 
        documentation, how to do that.
        After that repeat the step above.

        As root, copy the perl-script "note" to /usr/bin.

	You can find a sample config file within the subdirectory
	"config" named noterc. There are some special values
	which you can use to connect to a different database
	then the default.
	install.sh will create the following database:
		name: 		user_note
		Maintable: 	note
		Number:		number(int 10)
		Note:		note(text)
		Date:		date(text)

	You can use the file "permissions" as a template for
	modifying a users permissions to her database. Please
	note, that there are different version of mysql out 
	there with different access privilege systems, which
	are not compatible, refer to the documentation shipped
	with your mysql installation to learn, how many fields
	are available and what they are for.

	You may also take a look to:
	http://www.mysql.org/Manual_chapter/manual_Privilege_system.html	


        This should be all.