NOTICE
Network setup
$ lsof -i -P -n | grep LISTEN
$ netstat -an | grep "LISTEN "
Database setup
$ systemctl disable mysql
$ service mysql stop
$ service mysql start
$ mysql -u user -p
> DROP DATABASE IF EXISTS dictionary;
> CREATE DATABASE dictionary;
> SHOW DATABASES;
> USE dictionary;
> SHOW TABLES;
> DESCRIBE word;
> DESCRIBE word_image;
> SELECT user FROM mysql.user;
> SELECT * FROM word;
> SELECT * FROM word_image;
Debugging
$ ulimit -c unlimited
$ ulimit -c
$ sudo service apport start
$ sudo service apport status
$ gdb cmake-build-debug/lynx/lynx_test /var/lib/apport/coredump/<coredump_file>
bt full
$ gdb cmake-build-debug/lynx/lynx_test
run # OR r
bt full
quit # OR q