Print
카테고리: [ Miscellaneous ]
조회수: 1627

 

DB 조작을 통해 Kunena Forum의 글(message) 작성자를 수정하는 방법입니다. 이 방법은 MySQL을 기준으로 합니다.

 

1. [사이트]_kunena_messages 테이블 작업

update [사이트]_kunena_messages
set userid = '400', username = 'lee'
where id = '500'
and userid = '300'
and username = 'kim';

여기까지만 하면 글 자체의 작성자는 바뀌어 보여도 목록의 작성자는 바뀌어 있지 않습니다.

2. [사이트]_kunena_topics 테이블 작업

update [사이트]_kunena_topics
set first_post_userid = '400', first_post_guest_name = 'lee'
where id = '181'
and first_post_userid = '300'
and first_post_guest_name = 'kim’;