Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 635 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 635 Bytes

#notes

Terminal based notes keeping app with mysql database.
< needed: "Mysql" >

##uses

$ ./notes			==> lists all notes
$ ./notes <id>			==> displays note identified by <id>
$ ./notes -a|-add		==> adds notes 
$ ./notes -c|-configure		==> creates database and table
$ ./notes -h|-help		==> uses help 
$ ./notes -t|-truncate		==> clean database entries[WARNING]

##compile

$ gcc notes.c -o notes `mysql_config --cflags --libs`

##troubleshoot

> DROP USER 'ntuser'@'localhost';

> DROP DATABASE notesdb;

> ALTER TABLE mynotes auto_increment=<value>;