The easiest way around this is probably to reset the Admin password on the old Database. If you have PHPMyAdmin or a very similar DB admin interface, do the following:
- Import the old database.
- Open the user’s table, usually called ‘wp_users’.
- Find the user you wish to change the password for, and replace the contents of the ‘user_pass’ field with a plain text password. i.e “mypassword”.
- IMPORTANT: WordPress expects the password to be hashed as MD5. So before saving the record, set the ‘Function’ dropdown to ‘MD5’. See screenshot:
- Save the record and try to login.
If you don’t have PHPMyAdmin or similar and want to set the password manually in a SQL dump file, you can generate an MD5 hash of a plain text password in several ways:
-
If you’re on Mac/Linux, do the following in terminal:
openssl md5 <<< mypassword -
You can use an online generator
Related Posts:
- How do I migrate blog post images from one domain to a new one?
- Most Flawless Way To Transfer from Dev to Prod [duplicate]
- Suggestions for WPMU Migration (advanced)
- WordPress does not detect all images in uploads folder?
- Redirect to another page using contact form 7? [closed]
- bulk deleting empty items in the media library
- Broken image links in media library after restore
- Change the default-view of Media Library in 3.5?
- Get All Images in Media Gallery?
- Bind event on Media gallery elements WordPress
- Best way to import users, post and categories from an external database
- Remove the columns in media library
- How to migrate a WordPress installation from one site to another, including all images?
- How to save attachment data?
- How can I export WordPress posts’ attachments?
- How to enlarge thickbox media library iframe?
- How to modify Media Library images
- Inserting a Download Link in the Quick Edit Actions of the Media Library?
- How do I remove the entire Media section from the main WordPress navigation without just hiding it?
- How to migrate WordPress Blogs into Multisite without using the GUI-Import/Export Feature
- Add tab on new media library
- Copy site from one multisite to another
- What’s a better workflow for database migration?
- Is there any way to add images to the Media Library through a path on the server?
- Media Library page super slow, loading up full quality images
- How can I use the TinyMCE editor for the description field on a Media item?
- register_post_status invisible but searchable
- Bulk Import files on Media Library from CSV
- Hide upload image fields for the different media upload popups
- “Insert Into Post” For Custom Button
- Display image file size in media library
- Media_handle_upload with custom upload folder?
- Rebuild vs Upgrade – need pointers, advice
- remove_menu_page breaks “Add media”
- Organize media uploads in folders – I have a physical access to (my) server
- Pulling images from a subdomain
- Get image URL from media library “insert from url”
- Sorting Media Library by Author Name
- Media gallery: remove “insert into post” button keeping “Insert gallery” button
- Media Content disapeared after upgrade WP core to 3.5.1
- How do I fully migrate post images from one WordPress site to another?
- how to remove thumbnail and LiteSpeed Optimization column in media library list-view?
- wp_get_attachment_image_src returns the wrong image
- Intersept image upload and generate retina image from source
- Export + Import = wrongly duplicated content
- Crop image with full width
- WordPress media uploader – upload tabs not hiding
- Change Media Library thumbnails for non-image files to include the post title instead of the filename?
- attachment media-template data model (data.size.url)
- Problems with WordPress Import
- problem in uploading attachment to custom directory
- How do you alter the default WordPress thumbnail?
- Media Library, hook on delete user action
- Create a User Role with permissions to only upload files to the media library?
- Adding Alt Tag Column to Media Library List
- How to modify the attachment info text on gallery tab or media page?
- Add media button always inserts media on the next wp_editor instance when created dynamically
- Is it Helpful to transfer all media library to another host? [closed]
- Is there a way to determine if the media-iframe is visible?
- WordPress lowers image quality
- image not found in media library
- Is there a way to programmatically pass a category to the Media Library selector?
- Media Library http to https
- How to limit the amount of images uploaded to the media library within post.php
- Migrating my site to a new domain does not keep any changes made in customizer
- Change thumbnail size for Media Library
- Adding Facebook Open Graph Code does not work for Media Library Attachment Pages
- After migrating media library is not showing thumbnails
- How to fix custom add menu page preventing media library from loading
- custom/automatic export function – one post at a time?
- Media library corrupted after upgrading to 4.9.6
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- Upgrading a wordpress site to its newest version
- Media import failed in the WordPress importer
- query that alternates text posts with images from media gallery
- Altered Media Library URLs
- Can multiple sites under one folder structure share media directories?
- Unable to delete images in Media Library
- WordPress Media Delete Logs
- WordPress not using edited image
- WooCommerce – Adding Product Attributes to CSV Export
- Is it possible to get an exported WP site in a zipped folder up and running? [closed]
- How to access media library?
- Migrate bbpress content to posts
- Create gallery doesn’t show uploaded images
- Media Library not showing images when adding to Posts (but retrieving image info via ajax)
- WordPress 3.5 Media Manager – Change loaded image Size [duplicate]
- Change the default-view of Media Library in 3.5?
- How use Videos from another directory?
- Media Manager 3.5 custom options
- Remove (Unattached) Attach from “Uploaded to” in Media Library
- Uploading pictures to the Media Library: “Specified file failed upload test.”
- WordPress Media Library
- Create media library feed
- Store images and videos category wise and fetch them in json format
- How to continuously developing a WP site that is already deployed in production without damaging it during development
- 2 or more WordPress instances (Live vs Staging Test site) –> access 1 uploads.domain.com — images holder – see images in Media Library
- media library contains corrupt doubles
- How can I change the page title of PDFs opened from a WordPress link which use the browser’s viewer?
- Files showing in link but cannot be found in the upload directory