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
- Convert entire media library to WebP, delete original images and update references
- Change the default-view of Media Library in 3.5?
- Get All Images in Media Gallery?
- How do I select an image from Media Library in my plugin?
- Media Library plugins for better file management? [closed]
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- How to add subfolders in media library for better organisation?
- How to display .ico files in the media library
- List of available events for wp.media
- print_media_templates not applied in media manager plugin
- Uploading Images to Media Library via wp_handle_sideload() fails
- WordPress 3.5 attachment_fields_to_edit and media_send_to_editor
- Bind event on Media gallery elements WordPress
- display image size in media library screen
- How to upload an image in the plugin’s options page
- image_size_names_choose filter doesn’t show
- Add class=”media_type” when media is inserted into editor
- Limit Media Library to Given Folder
- How do I ‘rebuild’ the WordPress Media library after transfer to new host?
- Proper way to hook wp_get_attachment_url or any other way to change that url in media library
- Best way to import users, post and categories from an external database
- How can I list URLs of all audio files within my media gallery?
- Migrating to HTTPS only, most media library links need updating?
- Failing to open advanced-cache.php which is breaking Media Library
- Add more rows on media picker
- How to transfer changes from test environment to live site?
- Filter pictures in the media library [closed]
- WP 3.5 media uploader API set selected item
- Is there a way to delete images from the Media Library programatically?
- Add file name column to media library
- Migrating WP site to another URL
- Uploads folder only showing files up to the letter “P”
- Media import failed in the WordPress importer
- Multi-site error wordpress after migration
- query that alternates text posts with images from media gallery
- Altered Media Library URLs
- Import all media referenced in posts
- Can multiple sites under one folder structure share media directories?
- Unable to delete images in Media Library
- Site migration and how to write internal links with migration in mind
- WordPress Media Delete Logs
- Organizing the Media Library for Cleanup
- WordPress not using edited image
- WooCommerce – Adding Product Attributes to CSV Export
- How to display the date a directory folder on ftp was modified
- Media library images “missing” after migrating them using SQL
- When I’m in post editor and click on ‘Add media’, why won’t it load the media library with this code?
- Export to WXR for pages containing script and iframe tags
- 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
- how to setup user access media library?
- How can I add a Description column to the media library browser screen?
- Get filenames of available image sizes
- How can I create more “create attachment” custom field – any idea?
- 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
- Host Images from Link
- Uploading pictures to the Media Library: “Specified file failed upload test.”
- Use the “Media Library” in Frontend
- The issue of redirecting my site to a new domain
- Why is my upload / Select media library button empty?
- How do I set up a test environment in a sub-folder?
- WordPress Media Library
- All the Images in Media Library is showing broken links
- Create media library feed
- Store images and videos category wise and fetch them in json format
- Add Filename Colum to Media Library
- How to continuously developing a WP site that is already deployed in production without damaging it during development
- create a user’s owned folder on user registration
- 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
- cannot export data from CPT UI (books)
- How to bulk edit taxonomies for attachments
- How can I change the page title of PDFs opened from a WordPress link which use the browser’s viewer?
- wp cli media commands not working
- Files showing in link but cannot be found in the upload directory
- Does WordPress import export tool keeps the file hosted on the old website?
- Block non logged in users from accessing the media library
- Remove Edit Attachment Button in WordPress Mediathek -> see Screenshot
- in classic editor, is there a way to add media lib files to the content search when creating a link?
- Editing alt text in media library
- Unable to upload media files: Maximum upload file size: 0 B [closed]
- “Media Library” shows as empty, despite images being present
- How to search all the photos on my site for possible copyright violations
- I’m planning to offload my WordPress Media Library to a CDN? Would you recommend it, and why (or why not)?
- Adding a folder to word press Media Library
- Will WP-CLI “wp media regenerate” delete the changed thumbnail sizes by default?