HTML & HTML5 Encoding (Character Sets) Tutorial Bangla 15
차례:
세계에서 가장 많이 사용되는 오픈 소스 관계형 데이터베이스 관리 시스템 인 MySQL은 기본 데비안 리포지토리에서 사용할 수 없습니다. MariaDB는 데비안 10의 기본 데이터베이스 시스템입니다.
이 튜토리얼에서는 MySQL Apt Repository에서 Debian 10에 MySQL을 설치하고 보호하는 방법을 설명합니다.
MySQL 리포지토리 구성
MySQL APT 저장소를 시스템에 추가하려면 저장소 다운로드 페이지로 이동하여 다음 wget 명령을 사용하여 최신 릴리스 패키지를 다운로드하십시오.
wget
다운로드가 완료되면 sudo 권한을 가진 사용자로 릴리스 패키지를 설치하십시오.
sudo apt install./mysql-apt-config_0.8.13-1_all.deb
설치하려는 MySQL 버전을 선택할 수있는 구성 메뉴가 표시됩니다.
설치가 완료되면 MySQL 서비스가 자동으로 시작되며 다음을 입력하여 확인할 수 있습니다.
sudo systemctl status mysql
● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en Active: active (running) since Fri 2019-07-26 13:23:25 PDT; 37s ago…
MySQL 보안
mysql_secure_installation
명령을 실행하여 루트 비밀번호를 설정하고 MySQL 설치의 보안을 향상 시키십시오.
sudo mysql_secure_installation
Securing the MySQL server deployment. Connecting to MySQL using a blank password. VALIDATE PASSWORD COMPONENT can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD component? Press y|Y for Yes, any other key for No:
MySQL 사용자 비밀번호의 강도를 테스트하는 데 사용되는
VALIDATE PASSWORD PLUGIN
을 구성하라는 메시지가 표시됩니다. 암호 유효성 검사 정책에는 낮음, 중간 및 강력의 세 가지 수준이 있습니다. 비밀번호 확인 플러그인을 설정하지 않으려면
ENTER
누르
ENTER
.
Please set the password for root here. New password: Re-enter new password:
다음 프롬프트에서 MySQL 루트 사용자의 비밀번호를 설정하라는 메시지가 표시됩니다.
By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? (Press y|Y for Yes, any other key for No): y Success. Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? (Press y|Y for Yes, any other key for No): y Success. By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? (Press y|Y for Yes, any other key for No): y - Dropping test database… Success. - Removing privileges on test database… Success. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? (Press y|Y for Yes, any other key for No): y Success. All done!
루트 암호를 설정하면 스크립트에서 익명 사용자를 제거하고 로컬 컴퓨터에 대한 루트 사용자 액세스를 제한하고 테스트 데이터베이스를 제거하라는 메시지도 표시됩니다. 모든 질문에“Y”(예)로 대답해야합니다.
MySQL 서버에 연결
터미널을 통해 MySQL과 상호 작용하려면 MySQL 서버 패키지의 종속성으로 설치된
mysql
클라이언트를 사용하십시오.
루트 인증 유형으로 MySQL 서버에 로그인하기 위해 기본 인증 방법을 선택한 경우:
sudo mysql
그렇지 않으면 로그인 할 레거시 인증 방법을 선택한 경우 다음을 입력하십시오.
mysql -u root -p
mysql_secure_installation
스크립트가 실행될 때 이전에 설정 한 루트 비밀번호를 입력하라는 프롬프트가 표시됩니다. 비밀번호를 입력하면 아래와 같이 MySQL 셸이 표시됩니다.
Welcome to the MySQL monitor. Commands end with; or \g. Your MySQL connection id is 10 Server version: 8.0.17 MySQL Community Server - GPL…
결론
이 튜토리얼에서는 데비안 10 서버에 MySQL 서버를 설치하고 보호하는 방법을 배웠습니다. 또한 MySQL 쉘에 연결하는 방법을 보여주었습니다.
응용 프로그램에 특정 요구 사항이 없으면 데비안 10의 기본 데이터베이스 시스템 인 MariaDB를 사용해야합니다.
MySQL 데비안데비안 10 리눅스에서 Apache Cassandra를 설치하는 방법

Apache Cassandra는 단일 장애 지점이없는 무료 오픈 소스 NoSQL 데이터베이스입니다. 이 기사에서는 Debian 10, Buster에 Apache Cassandra를 설치하는 방법에 대해 설명합니다.
데비안 10 리눅스에서 아파치 웹 서버를 설치하는 방법

Apache HTTP 서버는 세계에서 가장 인기있는 웹 서버 중 하나입니다. 이 튜토리얼에서는 Debian 10 Buster에 Apache를 설치하는 방법을 설명합니다.
데비안 9에 mysql을 설치하는 방법

이 튜토리얼에서는 MySQL Apt Repository의 Debian 9 머신에 MySQL을 설치하고 보호하는 방법을 보여줍니다.