728x90
์๋ฌ ์ค๋ช
์ดํด๋ฆฝ์ค์์ ์คํ๋ง ๋ถํธ ํ๋ก์ ํธ ์คํ ์ค์ ์ฝ๋ ๊ณ์ ์์ -์ ์ฅ-์์ -์ ์ฅ ๋ฐ๋ณตํ๋ค ๋ณด๋ ์๊ธด ์๋ฌ
java.sql.SQLSyntaxErrorException: User 'scott' has exceeded the 'max_questions' resource (current value: 1000)
ํด๊ฒฐ
1. ์คํ ์ค์ด๋ ํ๋ก์ ํธ๋ฅผ ์ค์ง ์์ผฐ๋ค๊ฐ ๋ค์ ์คํํ๊ธฐ๋ง ํด๋ ํด๊ฒฐ ๋ ๋๊ฐ ์๋ค.
2. MySQL์์ ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ ์ ์ธ์ ๋ค๋ฅธ ์ ์ ๋ก ์ ์ํด์ max_questions๋ฅผ 0์ผ๋ก ๋ฆฌ์ ํด์ค๋ค.
SET @MAX_QUESTIONS=0;
FLUSH PRIVILEGES;
์ถ๊ฐ ์ค๋ช
max_questions๋ 1์๊ฐ ์์ MySQL์ user๊ฐ ์คํํ ์ ์๋ ์ฟผ๋ฆฌ์ ๊ฐ์์ด๋ค.
๋์ ์๋ฌ ๋ฉ์ธ์ง๋ฅผ ๋ณด๋ฉด user "scott"์ ๊ฒฝ์ฐ 1์๊ฐ ๋ด์ ํ์ฉ๋๋ ์ฟผ๋ฆฌ์ ๊ฐ์๋ 1000์ด๊ธฐ ๋๋ฌธ์ 1000์ ๋์ด๊ฐ๋ฉด ๋ ์ด์ ํ๋ก๊ทธ๋จ์ด ์คํ๋์ง ์๊ณ ์๋ฌ๊ฐ ๋จ๋ ๊ฒ์ด๋ค.
java.sql.SQLSyntaxErrorException: User 'scott' has exceeded the 'max_questions' resource (current value: 1000)
ํ๋ก์ ํธ๊ฐ ์คํ ์ค์ธ ์ํ์์ ๊ณ์ ์ฝ๋ ์์ -์ ์ฅ์ ๋ฐ๋ณตํ๋ค ๋ณด๋ ๊ฐ์ ์ฟผ๋ฆฌ๊ฐ ์คํธ์ธ๊ฑฐ์ฒ๋ผ ์ฌ๋ฌ๋ฒ ์คํ๋๋ฉด์ ์๋ฌ๊ฐ ๋ฌ๋ ๊ฒ์ด๋ค.
๊ทธ๋์ ๊ป๋ค ์ผ๊ฑฐ๋ ๋ฆฌ์ ๋ง ํด์ฃผ๋ฉด ๋~
'๐จ Projects > ์๋ฌ๋ชจ์' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์๋ฌ๋ชจ์] The dependencies of some of the beans in the application context form a cycle (0) | 2023.03.18 |
---|---|
[GitHub] SQL ์ฝ๋ ์ธ์ ๋ชปํจ (0) | 2023.03.12 |
๋ฐฑ์คํ๋ธ ๋นจ๊ฐ ์ฒดํฌ (0) | 2023.03.07 |
[์๋ฌ๋ชจ์] Failed to configure a DataSource (0) | 2023.03.03 |
[์๋ฌ๋ชจ์] java.lang.UnsupportedClassVersionError (0) | 2023.03.02 |
๋๊ธ