users - user_meta table in staging vs live site

I copied a site over from live to staging and in the process of updating the site users on the LIVE site have updated th

I copied a site over from live to staging and in the process of updating the site users on the LIVE site have updated their information (ie email and passwords). Is it as easy as copying the user_meta table over to the staging site and the new passwords will work?

I copied a site over from live to staging and in the process of updating the site users on the LIVE site have updated their information (ie email and passwords). Is it as easy as copying the user_meta table over to the staging site and the new passwords will work?

Share Improve this question asked Oct 11, 2019 at 19:02 presswordpressword 3801 gold badge4 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Passwords are stored in users not usermeta. I'd copy both tables over and it'll work fine.

 `wp_users` (
  `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_login` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `user_pass` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `user_nicename` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `user_email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `user_url` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `user_activation_key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `user_status` int(11) NOT NULL DEFAULT '0',
  `display_name` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`ID`),
  KEY `user_login_key` (`user_login`),
  KEY `user_nicename` (`user_nicename`),
  KEY `user_email` (`user_email`)
)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745089064a4610577.html

相关推荐

  • users - user_meta table in staging vs live site

    I copied a site over from live to staging and in the process of updating the site users on the LIVE site have updated th

    16小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信