# 예제 경로로 이동
root@secu-VirtualBox:/var/www/html# cd board/
root@secu-VirtualBox:/var/www/html/board# ls
board.php board_write_chk.php login.php member.sql stylesheet.css
board_show.php dbconfig.php login_chk.php menu.php webhack.sql
board_write.php index.php logout.php pds
# 데이터베이스에 실습 데이터 복원
root@secu-VirtualBox:/var/www/html/board# mysql -u root < webhack.sql
# MariaDB 설치 후 root 로그인 방식 변경
root@secu-VirtualBox:~# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 38
Server version: 10.3.25-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.