๐Ÿš€ Languege/Basic SQL 3

[MySQL 8.0] Nodejs ์—ฐ๋™ ์‹œ ์—๋Ÿฌ "Client does not support authentication protocol requested by server; consider upgrading MySQL client"

์•ผ๋ฌด์ง€๊ฒŒ ์„ค์น˜ํ•˜๊ณ  Nodejs์™€ ์—ฐ๋™ํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ๊นŒ ๋ฐ”๋กœ ๋™‡ ์—๋Ÿฌ๊ฐ€ ๋‚˜์˜ค๋„ค์š”...๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜‚ 1. ์ƒ˜ํ”Œ ์ฝ”๋“œ ์‚ฌ์šฉํ•œ ์ฝ”๋“œ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค. (์˜ˆ์ œ ๋งํฌ) // test-mysql.js ํŒŒ์ผ var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'host-IP', user : 'root', password : 'Xptmxm1212!@', database : 'my-Database' }); connection.connect(); connection.query('select * from sample_table', function (error, results, fields) { if (error){ console.log(err..

[MySQL 8.0] MySQL ์œ ์ € ์›๊ฒฉ์ ‘์† ํ—ˆ์šฉํ•˜๊ธฐ

์•ˆ๋…•ํ•˜์„ธ์š” ๐Ÿ™‹ ๐Ÿ™‹‍โ™€๏ธ MySQL์„ ์ฒ˜์Œ ์„ค์น˜ํ•˜๊ณ , ์™ธ๋ถ€์—์„œ ์ ‘์†ํ•ด๋ณด๋ ค๊ณ  ํ•˜๋ฉด ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋‚˜์˜ต๋‹ˆ๋‹ค. mysql -h -u root -p MySQL์€ ๊ธฐ๋ณธ์ ์œผ๋กœ ๋กœ์ปฌ(Localhost)์—์„œ๋งŒ ์ ‘์†์ด ํ—ˆ์šฉ๋ฉ๋‹ˆ๋‹ค. MySQL ์‚ฌ์šฉ์ž๋ฅผ ์‚ดํŽด๋ณผ๊นŒ์š”? mysql> SELECT Host,User,plugin,authentication_string FROM mysql.user; ์œ ์ €๊ฐ€ ๋‹ค "localhost"๋กœ ํ‘œ์‹œ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ, ์™ธ๋ถ€์—์„œ๋ถ€ํ„ฐ์˜ ์ ‘์†์ด ๋ถˆ๊ฐ€๋Šฅ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ์ด๋ฒˆ ์‹œ๊ฐ„์—์„œ๋Š” ์™ธ๋ถ€์—์„œ ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ณ„์ •์„ ์„ค์ •ํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. :) * ์ฃผ์˜ * ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” Root๊ณ„์ •์„ ๋ณ€๊ฒฝํ•˜์ง€๋งŒ, ๋ณด์•ˆ ์ƒ Root๊ณ„์ • ์™ธ ๋ณ„๋„์˜ ๊ณ„์ •์„ ๋งŒ๋“ค์–ด ์‚ฌ์šฉํ•˜๊ธฐ๋ฅผ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค. ๋จผ์ €, ์‚ฌ์šฉ์ž๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค :..

[MySQL 8.0] CentOS7์— MySQL 8.0์„ค์น˜ํ•˜๊ธฐ

์•ˆ๋…•ํ•˜์„ธ์š” ๐Ÿ™‹‍โ™€๏ธ ๐Ÿ™‹‍โ™‚๏ธ !!! ์ด๋ฒˆ ํฌ์ŠคํŒ…์—์„œ๋Š” mysql 8.0 ๋ฒ„์ „์„ ์„ค์น˜ํ•ด๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค ;) ์ €๋Š” AmazonEC2 CentOS7์„ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค!!! 1. MySQL ์„ค์น˜ ๋‹ค์šด๋กœ๋“œ ๋งํฌ ํ™•์ธ MySQL Commucity ๋ฒ„์ „์œผ๋กœ ๋‹ค์šด๋ฐ›๊ธฐ ์œ„ํ•ด์„œ ์•„๋ž˜ ๋งํฌ๋กœ ์ ‘์†ํ•˜์„ธ์š”! ์„ค์น˜ ์‹œ์ ์— ๋”ฐ๋ผ ์ตœ์‹  ๋ฒ„์ „์ด ๋‹ค๋ฅด๋ฏ€๋กœ ์„ค์น˜ํ•˜์‹ค๋•Œ ์•„๋ž˜ ์ˆœ์„œ์— ๋”ฐ๋ผ ์„ค์น˜ ๋งํฌ๋ฅผ ๋ฐ›์•„์ฃผ์‹œ๋Š”๊ฒŒ ์ข‹์•„์š” :) www.mysql.com/products/community/ MySQL :: MySQL Community Edition MySQL Community Edition MySQL Community Edition is the freely downloadable version of the world's most popular open..

728x90