티스토리 뷰

공부

[MySQL] install

승가비 2020. 4. 9. 22:11
728x90
sudo apt-get update && sudo apt-get dist-upgrade


sudo apt-get install mysql-server
sudo ufw allow mysql
sudo systemctl start mysql
sudo systemctl enable mysql
sudo /usr/bin/mysql -u root -p

CREATE USER 'seunggabi'@'%' IDENTIFIED BY '********';
GRANT ALL PRIVILEGES ON *.* TO seunggabi@'%';
FLUSH PRIVILEGES;

sudo /usr/bin/mysql -u seunggabi -p

# open port
sudo iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
sudo iptables -I OUTPUT -p tcp --sport 3306 -j ACCEPT
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
# bind-address = 127.0.0.1

sudo systemctl restart mysql

mysql -h 0.0.0.0 -u root -p asdf

askubuntu.com/questions/833208/unable-to-locate-package-mysql-server

 

Unable to locate package mysql-server

I installed ubuntu 16.04, after that when i try to install mysql it shows error as $ sudo apt-get update [sudo] password for mcerc: Reading package lists... Done mcerc@mcerc-ThinkCentre-M72e:~$ s...

askubuntu.com

https://dejavuqa.tistory.com/317

 

mysql 설치 와 기본 설정 (on Ubuntu)

Ubuntu에 mysql을 설치해 보겠습니다. 언제나 그렇듯이 Ubuntu 버전부터 살펴보겠습니다. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18...

dejavuqa.tistory.com

 

http://blog.naver.com/onlyu/220595826451

 

[Ubuntu] MySQL 외부접속 설정하기

[Ubuntu] MySQL 외부접속 설정하기 MySQL DB 서버에서 사용자가 외부 접속을 할 수 있도록 설정...

blog.naver.com

https://webdir.tistory.com/217

 

[Ubuntu] 우분투 MySQL 설정

우분투에서 MySQL 관련 설정을 알아봅니다. 기본 문자셋 설정 언어셋을 따로 설정하지 않고 DB를 생성하게 되면 latin1로 설정된다. 이 경우 게시판등에 한글이 출력될때는 문제가 없을수도 있으나 DB 자료 자체..

webdir.tistory.com

http://egloos.zum.com/postback/v/3406296

 

MySQL : 원격 접속이 안될 때

로컬에서는 잘 접속되는 MySQL 서버에, 원격지에서 접속이 안되는 경우가 있다.이럴 때는 다음의 내용을 테스트 해보며 점검해보면 문제점을 확인할 수 있다.원격 접속 시 겪을 수 있는 에러 메세지는 다음과 같다.ERROR 2003 (HY000): Can't connect to MySQL server on '...'ERROR 1045 (28000): Acce

egloos.zum.com

 

728x90

'공부' 카테고리의 다른 글

[MySQL] Decimal(M, D)  (0) 2020.04.09
[Python] Dictionary  (0) 2020.04.09
[LINE-Bot] Notify  (0) 2020.04.06
[CS] `_` (underscore) variable name  (0) 2020.04.03
[Python] LINE Message Bot  (0) 2020.04.03
댓글