LoginSignup
7

More than 5 years have passed since last update.

WordPress のユーザー権限を管理者に書き換える

Last updated at Posted at 2014-12-22

はじめての投稿です!

WordPress の案件で、最新のデータベースをインポートするたびに、自分を管理者権限にしないといけないものがあったので、メモ。


update wp_usermeta set meta_value='a:1:{s:13:"administrator";b:1;}' where user_id=ユーザID AND meta_key="wp_capabilities"
update wp_usermeta set meta_value=10 where user_id=ユーザID AND meta_key="wp_user_level"

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7