๐ณ ์ค๋ฅ: 'db:create' ์คํ ์ 'ํ๋ฌ๊ทธ์ธ ์บ์ฑ_sha2_password๋ฅผ ๋ก๋ํ ์ ์์ต๋๋ค'
๐ค ๋ฌธ์
์ค๋ฅ: 'ํ๋ฌ๊ทธ์ธ caching_sha2_password๋ฅผ ๋ก๋ํ ์ ์์ต๋๋ค'
๐ ์๋ฃจ์
IDENTIFIED๋ฅผ mysql_native_password๋ก ๋ณ๊ฒฝ
๐์ ์ฐจ
1.
$ docker cp hoge.sql [cotaier-id]:/hoge.sql
2. ๋์ปค์ ๋ก๊ทธ์ธ
$ docker ps
$ docker exec -it [container-id] /bin/bash
3. MySQL์ ๋ก๊ทธ์ธ
$ mysql -u root -p
4. ๋ฃจํธ ์ฌ์ฉ์๋ฅผ ํ์ธํ๊ณ ๋ณ๊ฒฝํฉ๋๋ค.
๋น๋ฐ๋ฒํธ๋ 'password'๋ผ๊ณ ๊ฐ์ ํฉ๋๋ค.
mysql> SELECT user, host, plugin FROM mysql.user;
+------------------+-----------+-----------------------+
| user | host | plugin |
+------------------+-----------+-----------------------+
| root | % | caching_sha2_password |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| mysql.sys | localhost | caching_sha2_password |
| root | localhost | caching_sha2_password |
+------------------+-----------+-----------------------+
5 rows in set (0.00 sec)
mysql> alter user 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Query OK, 0 rows affected (0.00 sec)
mysql> alter user 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
Query OK, 0 rows affected (0.00 sec)
mysql> SELECT user, host, plugin FROM mysql.user;
+------------------+-----------+-----------------------+
| user | host | plugin |
+------------------+-----------+-----------------------+
| root | % | mysql_native_password |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| mysql.sys | localhost | caching_sha2_password |
| root | localhost | mysql_native_password |
+------------------+-----------+-----------------------+
5 rows in set (0.00 sec)
๋ถ๋ชจ ์ฐธ๊ณ ์ฌํญ
๋ด ๋์ปค ๋ ธํธ
n350071๐ฏ๐ต ใป '19๋ 10์ 29์ผ ใป 1๋ถ ์ฝ๊ธฐ
#docker
Reference
์ด ๋ฌธ์ ์ ๊ดํ์ฌ(๐ณ ์ค๋ฅ: 'db:create' ์คํ ์ 'ํ๋ฌ๊ทธ์ธ ์บ์ฑ_sha2_password๋ฅผ ๋ก๋ํ ์ ์์ต๋๋ค'), ์ฐ๋ฆฌ๋ ์ด๊ณณ์์ ๋ ๋ง์ ์๋ฃ๋ฅผ ๋ฐ๊ฒฌํ๊ณ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ๋ณด์๋ค https://dev.to/n350071/docker-mysql-rails-error-plugin-cachingsha2password-could-not-be-loaded-when-run-dbcreate-113iํ ์คํธ๋ฅผ ์์ ๋กญ๊ฒ ๊ณต์ ํ๊ฑฐ๋ ๋ณต์ฌํ ์ ์์ต๋๋ค.ํ์ง๋ง ์ด ๋ฌธ์์ URL์ ์ฐธ์กฐ URL๋ก ๋จ๊ฒจ ๋์ญ์์ค.
์ฐ์ํ ๊ฐ๋ฐ์ ์ฝํ ์ธ ๋ฐ๊ฒฌ์ ์ ๋ (Collection and Share based on the CC Protocol.)
์ข์ ์นํ์ด์ง ์ฆ๊ฒจ์ฐพ๊ธฐ
๊ฐ๋ฐ์ ์ฐ์ ์ฌ์ดํธ ์์ง
๊ฐ๋ฐ์๊ฐ ์์์ผ ํ ํ์ ์ฌ์ดํธ 100์ ์ถ์ฒ ์ฐ๋ฆฌ๋ ๋น์ ์ ์ํด 100๊ฐ์ ์์ฃผ ์ฌ์ฉํ๋ ๊ฐ๋ฐ์ ํ์ต ์ฌ์ดํธ๋ฅผ ์ ๋ฆฌํ์ต๋๋ค