MySQL 에러 80개 — 원인과 해결 방법
실제 DB에서 재현하고 해결한 MySQL 에러 80개. 에러를 고르면 실제 출력, 해결 SQL, 실행 결과를 볼 수 있어요.
- MySQL1040원인 1개너무 많은 연결... max_connection을 증가 시키시오...
- MySQL1044원인 4개'lab_b'@'%' 사용자는 'shop' 데이타베이스에 접근이 거부 되었습니다.
- MySQL1045원인 5개'app_user'@'127.0.0.1' 사용자는 접근이 거부 되었습니다. (using password: 예)
- MySQL1046원인 3개선택된 데이타베이스가 없습니다 (No database selected)
- MySQL1048원인 5개칼럼은 널(Null)이 되면 안됩니다 (Column cannot be null)
- MySQL1049원인 4개데이타베이스를 알 수 없음 (Unknown database)
- MySQL1050원인 4개테이블이 이미 존재함 (Table already exists)
- MySQL1051원인 3개알 수 없는 테이블 (Unknown table)
- MySQL1052원인 3개칼럼: 'id' in 'field list' 이 모호함
- MySQL1054원인 4개알 수 없는 칼럼 (Unknown column)
- MySQL1055원인 5개GROUP BY에 없는 컬럼 (only_full_group_by)
- MySQL1059원인 2개Identifier는 너무 길군요
- MySQL1060원인 3개중복된 칼럼 이름: 'phone'
- MySQL1061원인 2개중복된 키 이름 : 'idx_orders_customer'
- MySQL1062원인 4개중복된 입력 값 (Duplicate entry for key)
- MySQL1064원인 6개SQL 구문 오류 (You have an error in your SQL syntax)
- MySQL1067원인 3개유효하지 못한 디폴트 값을 사용하셨습니다 (Invalid default value)
- MySQL1068원인 3개Multiple primary key가 정의되어 있슴
- MySQL1071원인 4개정의된 키가 너무 깁니다 (Specified key was too long)
- MySQL1075원인 3개부정확한 테이블 정의; 테이블은 하나의 auto 칼럼이 존재하고 키로 정의되어져야 합니다.
- MySQL1091원인 3개'fax'를 DROP할 수 없습니다. 칼럼이나 키가 존재하는지 채크하세요.
- MySQL1093원인 4개You can't specify target table for update in FROM clause
- MySQL1101원인 3개BLOB 칼럼은 디폴트 값을 가질 수 없습니다
- MySQL1111원인 3개잘못된 그룹 함수를 사용하였습니다.
- MySQL1118원인 4개너무 큰 row 사이즈입니다
- MySQL1136원인 4개칼럼 카운트와 value 카운터와 일치하지 않습니다 (Column count doesn't match value count)
- MySQL1138원인 2개NULL 값을 잘못 사용하셨군요...
- MySQL1142원인 4개명령이 사용자에게 거부되었습니다 (command denied to user)
- MySQL1143원인 3개컬럼에 대한 명령이 사용자에게 거부되었습니다 (command denied to user for column)
- MySQL1146원인 5개테이블이 존재하지 않습니다 (Table doesn't exist)
- MySQL1166원인 3개Incorrect column name
- MySQL1170원인 3개BLOB/TEXT column used in key specification without a key length
- MySQL1172원인 3개Result consisted of more than one row
- MySQL1175원인 4개You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column
- MySQL1176원인 3개Key 'idx_cust' doesn't exist in table 'orders'
- MySQL1205원인 4개Lock wait timeout exceeded; try restarting transaction
- MySQL1213원인 2개Deadlock found when trying to get lock; try restarting transaction
- MySQL1222원인 2개The used SELECT statements have a different number of columns
- MySQL1226원인 2개User has exceeded the 'max_user_connections' resource
- MySQL1227원인 3개Access denied; you need (at least one of) the SUPER or SET_ANY_DEFINER privilege(s) for this operation
- MySQL1235원인 3개This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
- MySQL1241원인 3개Operand should contain 1 column(s)
- MySQL1242원인 3개Subquery returns more than 1 row
- MySQL1248원인 3개Every derived table must have its own alias
- MySQL1264원인 4개Out of range value for column (컬럼 범위를 넘는 값)
- MySQL1265원인 4개Data truncated for column
- MySQL1267원인 3개Illegal mix of collations for operation '='
- MySQL1290원인 3개The MySQL server is running with the --secure-file-priv option
- MySQL1292원인 5개잘못된 날짜 값 (Incorrect date value)
- MySQL1305원인 3개FUNCTION lab_a.addtax does not exist
- MySQL1318원인 3개Incorrect number of arguments for PROCEDURE; expected 2, got 1
- MySQL1329원인 2개No data - zero rows fetched, selected, or processed
- MySQL1364원인 6개컬럼 기본값 없음 (Field doesn't have a default value)
- MySQL1366원인 5개컬럼에 맞지 않는 값 (Incorrect integer/decimal/string value)
- MySQL1396원인 3개Operation CREATE USER failed for 'app'@'%'
- MySQL1406원인 5개컬럼 길이 초과 (Data too long for column)
- MySQL1410원인 2개You are not allowed to create a user with GRANT
- MySQL1418원인 2개This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled
- MySQL1419원인 2개You do not have the SUPER privilege and binary logging is enabled
- MySQL1442원인 2개Can't update table in stored function/trigger because it is already used by statement
- MySQL1449원인 3개The user specified as a definer does not exist
- MySQL1451원인 5개부모 행 삭제·수정 불가 (Cannot delete or update a parent row)
- MySQL1452원인 6개외래키 제약 위반 (Cannot add or update a child row)
- MySQL1524원인 2개Plugin 'mysql_native_password' is not loaded
- MySQL1553원인 3개외래 키에 필요한 인덱스라 삭제할 수 없음 (Cannot drop index)
- MySQL1630원인 2개FUNCTION does not exist. Check the 'Function Name Parsing and Resolution' section
- MySQL1644원인 3개트리거·프로시저의 SIGNAL
- MySQL1690원인 3개BIGINT UNSIGNED value is out of range
- MySQL1701원인 2개Cannot truncate a table referenced in a foreign key constraint
- MySQL1820원인 2개You must reset your password using ALTER USER statement before executing this statement.
- MySQL1822원인 2개외래키 추가 실패 (Missing index for constraint)
- MySQL1824원인 3개참조 테이블을 열 수 없음 (Failed to open the referenced table)
- MySQL3024원인 2개Query execution was interrupted, maximum statement execution time exceeded
- MySQL3118원인 2개Access denied for user 'app_user'@'127.0.0.1'. Account is locked.
- MySQL3140원인 3개Invalid JSON text in value for column
- MySQL3730원인 3개외래키가 참조하는 테이블 삭제 불가
- MySQL3780원인 3개외래키 컬럼 타입 불일치 (are incompatible)
- MySQL3819원인 3개Check constraint is violated
- MySQL3955원인 2개연속 로그인 실패로 계정이 잠김 (Account is blocked)
- MySQL6125원인 3개외래키 추가 실패 (Missing unique key)