Search

MySQL ์„ค์น˜ On Ubuntu

MySQL ์„ค์น˜ On Ubuntu

ํŒจํ‚ค์ง€ ๋ชฉ๋ก ์—…๋ฐ์ดํŠธ

sudo apt update
Bash
๋ณต์‚ฌ

MySQL ํŒจํ‚ค์ง€ ๋ชฉ๋ก ํ™•์ธ

sudo apt list | grep mysql-server
Bash
๋ณต์‚ฌ

MySQL ์„ค์น˜

sudo apt install mysql-server
Bash
๋ณต์‚ฌ

MySQL ์„œ๋น„์Šค ์ƒํƒœ

sudo service mysql status
Bash
๋ณต์‚ฌ

MySQL ์„œ๋น„์Šค ์‹œ์ž‘

sudo service mysql start
Bash
๋ณต์‚ฌ

root ๊ด€๋ฆฌ์ž ๊ณ„์ • ์„ค์ •

sudo mysql_secure_installation
Bash
๋ณต์‚ฌ
password : 123456

Mysql ์‹คํ–‰

mysql
Bash
๋ณต์‚ฌ