Skip to content

Latest commit

 

History

History
86 lines (69 loc) · 1.17 KB

NOTICE.md

File metadata and controls

86 lines (69 loc) · 1.17 KB

NOTICE

Network setup

Show list opened ports

$ lsof -i -P -n | grep LISTEN
$ netstat -an | grep "LISTEN "

Database setup

Disable mysql from autostart

$ systemctl disable mysql

Disable mysql from autostart

$ service mysql stop
$ service mysql start

Start mysql client:

$ mysql -u user -p

Create database:

> DROP DATABASE IF EXISTS dictionary;
> CREATE DATABASE dictionary;

Show databases:

> SHOW DATABASES;
> USE dictionary;

Show tables:

> SHOW TABLES;

Show info tables:

> DESCRIBE word;
> DESCRIBE word_image;

Show users and tables:

> SELECT user FROM mysql.user;
> SELECT * FROM word;
> SELECT * FROM word_image;

Debugging

Enable core dump

$ ulimit -c unlimited
$ ulimit -c

Start crash reporter

$ sudo service apport start
$ sudo service apport status

Run debugger with core dump

$ gdb cmake-build-debug/lynx/lynx_test /var/lib/apport/coredump/<coredump_file>
  bt full

Run debugger with app

$ gdb cmake-build-debug/lynx/lynx_test
  run   # OR r
  bt full
  quit  # OR q