Jump to content

๋งค๋‰ด์–ผ:MySQL

From mediawiki.org
This page is a translated version of the page Manual:MySQL and the translation is 69% complete.
Outdated translations are marked like this.

MySQL๊ณผ MariaDB ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์—”์ง„์€ ๋ฏธ๋””์–ด์œ„ํ‚ค์˜ ๊ฐ€์žฅ ํ”ํžˆ ์“ฐ์ด๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐฑ์—”๋“œ์ž…๋‹ˆ๋‹ค. MariaDB๋Š” ์›น์‚ฌ์ดํŠธ์˜ ์œ„ํ‚ค๋ฏธ๋””์–ด ์žฌ๋‹จ ์œ„ํ‚ค ํŒœ์— ์“ฐ์ด๋Š” ๊ด€๊ณ„ํ˜• ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ด€๋ฆฌ ์‹œ์Šคํ…œ์ด๋ฏ€๋กœ ๋ฏธ๋””์–ด์œ„ํ‚ค์—์„œ ์ž˜ ์ง€์›๋ฉ๋‹ˆ๋‹ค. Much of the advice for MySQL and for MariaDB apply to each other.

See Compatibility#Database for a list of supported versions.

MySQL ๋˜๋Š” MariaDB์— ์—ฐ๊ฒฐํ•˜๊ธฐ

 mysql -u wikiuser -p my_wiki

Change wikiuser and my_wiki to the username and database name for your wiki ($wgDBuser and $wgDBname ). When prompted, enter your password.

Example

$ mysql -u root -p my_wiki
Enter password: 
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 150
Server version: 5.6.24-0ubuntu2 (Ubuntu)
...

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>.

์„ค์น˜

For further information, see ๋งค๋‰ด์–ผ:๋ฏธ๋””์–ด์œ„ํ‚ค ์„ค์น˜#๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋งŒ๋“ค๊ธฐ

๊ธฐ๋ณธ์ ์œผ๋กœ MySQL์ด๋‚˜ MariaDB๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋‹ค๋ฉด ์„ค์น˜ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํ†ตํ•ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ฐ„๋‹จํžˆ ์Šคํฌ๋ฆฝํŠธ์— mysql ๋ฃจํŠธ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ง€์ •ํ•˜์‹ญ์‹œ์˜ค. (๊ธฐ๋ณธ๊ฐ’์€ ๋น„์–ด์žˆ์Œ)

๊ฒฝ๊ณ  ๊ฒฝ๊ณ : ๋ฃจํŠธ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ๋นˆ ์ƒํƒœ๋กœ ๋‘๋ฉด ๋ฏธ๋””์–ด์œ„ํ‚ค ์„ค์น˜์˜ ๋ณด์•ˆ์— ์‹ฌ๊ฐํ•œ ์œ„ํ˜‘์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์•„์ง ์ง„ํ–‰ํ•˜์ง€ ์•Š์œผ์…จ๋‹ค๋ฉด ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ˆ˜์ •ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.
ISP ์„œ๋ฒ„์— ๋ฏธ๋””์–ด์œ„ํ‚ค๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์žˆ๋Š” ๊ฒฝ์šฐ ๋‹ค๋ฅธ ์ผ๋ถ€ ๋‹ค๋ฅธ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜๊ณผ DB๋ฅผ ๊ณต์œ ํ•ด์•ผ ํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ ์ด ๊ฒฝ์šฐ ๊ธฐ์กด์˜ ํ…Œ์ด๋ธ”๊ณผ ๋ฏธ๋””์–ด์œ„ํ‚ค์— ํ•„์š”ํ•œ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ…Œ์ด๋ธ” ๊ฐ„ ์ถฉ๋Œ์ด ๋ฐœ์ƒํ•  ์œ„ํ—˜์ด ์ปค์ง‘๋‹ˆ๋‹ค. ์ด ๋ฌธ์ œ์˜ ํ•ด๊ฒฐ์„ ์œ„ํ•ด ๋ฏธ๋””์–ด์œ„ํ‚ค์— ํ…Œ์ด๋ธ” ์ ‘๋‘์–ด๋ฅผ ์‚ฌ์šฉํ•˜๋„๋ก ์ง€์‹œํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์ด๋กœ์จ ๋ฏธ๋””์–ด์œ„ํ‚ค์˜ ๋ชจ๋“  ํ…Œ์ด๋ธ”์€ ์ด ์ ‘๋‘์–ด๋กœ ์‹œ์ž‘ํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ๋ฐฉ๋ฒ•์œผ๋กœ, ISP๊ฐ€ ํ—ˆ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์„œ๋ฒ„์— ์ƒ์ฃผํ•˜๋Š” ๊ฐœ๋ณ„ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์— ๋Œ€ํ•ด ๋‹ค๋ฅธ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜์‹ญ์‹œ์˜ค.

์ •๋น„

์—ฌ๋Ÿฌ ์ •๋น„์šฉ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ๋ฏธ๋””์–ด์œ„ํ‚ค ์„ค์น˜๋ณธ์˜ /maintenance/ ๋””๋ ‰ํ„ฐ๋ฆฌ์— ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์Šคํฌ๋ฆฝํŠธ ์ค‘ ์ผ๋ถ€๋Š” ๋‹จ์ผ์„ฑ ์ž‘์—…์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ์ผ๋ถ€๋ฅผ ๊ฐฑ์‹ ํ•˜๊ธฐ ์œ„ํ•ด ์ œ๊ณต๋ฉ๋‹ˆ๋‹ค.

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๊ฐ€์ ธ์˜ค๊ธฐ

For further information, see Manual:Importing XML dumps

๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋‚ด๋ณด๋‚ด๊ธฐ

For further information, see ๋งค๋‰ด์–ผ:์œ„ํ‚ค๋ฅผ ๋ฐฑ์—…ํ•˜๋Š” ๋ฒ•

๊ฐ™์ด ๋ณด๊ธฐ

์™ธ๋ถ€ ๋งํฌ