웹프로그래밍

Global It Leader!!


MySql


 
 

'Unknown column 'password' in 'field list' 에러

페이지 정보

작성자 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 댓글 0건 조회 181회 작성일 24-05-30 18:57

본문

MySQL 5.7 버전에서 password 필드가 사라지고, authentication_string 필드가 새로 추가되었다.


사용자 비밀번호를 변경하고자 한다면 다음과 같이 명령을 줘야한다.


mysql> use mysql;


mysql> update user set authentication_string='비밀번호' where user ='사용자';


mysql> flush privileges;


만약 새로운 사용자와 DB를 추가하고자 한다면...


mysql> insert into user (host,user,authentication_string) values('localhost','사용자',password('비밀번호'));


mysql> insert into db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv) VALUES('localhost', '디비명','사용자명', 'Y', 'Y', 'Y', 'Y','Y','Y');


mysql> create database 디비명;


mysql> flush privileges;

댓글목록

등록된 댓글이 없습니다.

전체 59
게시물 검색
MySql 목록
번호 제목 글쓴이 조회 날짜
59 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 60 02-10
58 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 76 12-27
열람중 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 182 05-30
56 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 662 06-30
55 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 679 06-30
54 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 696 05-25
53 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 870 02-03
52 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 955 10-21
51 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 1680 03-14
50 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3830 08-03
49 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2321 04-10
48 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2407 03-26
47 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3479 12-29
46 no_profile 운영자 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 2631 11-04
45 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3140 09-07
44 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 3660 11-02
43 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4353 11-02
42 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4050 03-28
41 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4103 07-31
40 no_profile 오원장 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 4156 09-02