DEV Community

sunj
sunj

Posted on

server(linux) - mysql 설치, 2022-06-01

  1. mysql 설치
sudo apt-get install mysql-server
Enter fullscreen mode Exit fullscreen mode
  1. ufw mysql 허가
sudo ufw allow mysql
Enter fullscreen mode Exit fullscreen mode
  1. mysql 시작
sudo systemctl start mysql
Enter fullscreen mode Exit fullscreen mode
  1. Ubuntu 서버 재시작시 MySQL 자동 재시작
sudo systemctl enable mysql
Enter fullscreen mode Exit fullscreen mode
  1. MYSQL 시작
sudo /usr/bin/mysql -u root -p
Enter fullscreen mode Exit fullscreen mode

참조 : [Ubuntu] 우분투에 MySQL 설치하기 (velog.io)

Top comments (0)