https://pinggoopark.tistory.com/122
[Linux] 우분투에 MySQL 설치하기
1. MySQL 설치 전 준비 관리자 계정으로 접속하기 su - 패키지 리스트 업데이트 apt update 2. MySQL 설치 다음 명령어를 통해 데이터베이스 설치하기 apt install mysql-server -y 3. MySQL 설정하기 다음 명령어
pinggoopark.tistory.com
** 사용자 설정 후 권한 줘서 웬만하면 root 사용하지 않도록 한다.
linux 경우 sudo 권한 주기.
https://salguworld.tistory.com/154
사용자변경 : su - [사용자 이름]
* yum 안될시 apt-get
Error : Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Please consider using ALTER USER instead if you want to change authentication parameters.
https://www.bddungsblog.com/2022/11/ubuntu-mysql-resolving-mysql-password.html
[Ubuntu] 우분투 MySQL 비밀번호 설정 오류 해결하기 Resolving Ubuntu MySQL Password Setting Errors
www.bddungsblog.com
CREATE DATABASE 데이터베이스이름;
show databases;
'AWS' 카테고리의 다른 글
nginx로 react(frontend)와 fastapi(backend)연동하기 (0) | 2023.02.10 |
---|---|
aws사용자데이터) ftp서버 (0) | 2023.02.02 |
EC2에 python/ fastapi 설치 (Ubuntu) (0) | 2023.02.01 |
EC2 React 배포 (1) | 2023.02.01 |
EC2로 로컬 파일 전송하기 (0) | 2023.02.01 |