Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»How to Migrate MySQL from DBngin to Laravel Herd

    How to Migrate MySQL from DBngin to Laravel Herd

    July 27, 2024

    Ever since Laravel Herd Pro was launched with the ability to manage database and cache services like MySQL, Postgres, and Redis, I’ve been wanting to switch from DBngin to Herd’s MySQL and Redis.

    Recently, with a little help from Marcel Pociot, I was able to figure out an easy way to move all my local databases over to Herd’s MySQL service without losing any data.

    Warning before getting started, if you have any databases that are really important and you can’t risk losing them, make a backup before following any of these instructions. I’m not responsible if something goes wrong and you lose some important data.

    Note: this method will only work if your MySQL services are on the same minor release version. For example: v8.0.33 to v8.0.36 will work. v8.0 to v8.2 will not work.

    1. Stop DBngin’s MySQL service.

    To stop DBngin’s MySQL service, open the DBngin app and click stop beside the MySQL service.

    2. Create the MySQL service in Herd

    Open Laravel Herd, and go to the “Services” tab. Click “Add Service” and create the MySQL service. I would suggest stopping the Herd MySQL service after it’s added so we can safely move the data without corrupting anything.

    3. Copy the data from DBngin to Herd

    First, you need to find out where DBngin stores all your database files. I found them the hard way, but Marcel told me an easier way. Open DBngin, right-click on the MySQL service, and click “Show database files”. It should open a “mysql” folder that has a single folder inside. Open that folder, and you should see a folder for every database you have, plus some other configuration files and folders.

    To find out where Herd plans to store your databases, we can follow a similar path. Open Herd’s “Services” tab again, right-click the MySQL service, and click “Open data directory”. It should open the exact folder where it stores the files.

    Now, copy all the files and folders from the DBngin folder to the Herd folder.

    4. Restart the MySQL service in Herd

    Once all the files are copied over, open up Herd to the “Services” tab and restart the MySQL service. Open up your database management tool of choice, connect to the MySQL service (probably using the same settings you were using previously), and you should see all your databases listed!

    Now, if you want to, and you’re not using DBngin for other services (or have migrated them all to Herd), you can uninstall DBngin. One less app/service to maintain on your Mac.

    Conclusion

    I’ve really been enjoying the simplicity Herd and Herd Pro bring to the Laravel development experience. It’s so simple to set up and includes pretty much everything needed for typical Laravel development these days. I can’t wait to see what they add next!

    Let me know what your favorite Herd features are on Twitter.

    The post How to Migrate MySQL from DBngin to Laravel Herd appeared first on Laravel News.

    Join the Laravel Newsletter to get all the latest Laravel articles like this directly in your inbox.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleA Resize Plugin for Alpine.js
    Next Article UX in Universal Design Series: Key Principles for Physical Disabilities in Health Systems – 1

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 16, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-2305 – Apache Linux Path Traversal Vulnerability

    May 16, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    How to Import KMZ Files Into Google Maps [Step-by-Step]

    Development

    Alleged Hosocongty Data Breach Exposes Vietnamese Job Seekers

    Development

    Archey 4 – simple system information tool

    Development

    The August 2024 Laravel Worldwide Meetup

    Development

    Highlights

    Development

    Satyrn: A Modern Jupyter Client for Mac with AI-Enabled Inline Code Generation

    July 11, 2024

    Mac users are accustomed to more specific, minimalist, and user-friendly applications. Jupyter is a web-based…

    Google’s Gemini AI might soon back up Siri on your iPhone – just like ChatGPT

    February 25, 2025

    The best gaming speakers of 2024: Expert recommended

    June 20, 2024

    FireScam Android Malware Poses as Telegram Premium to Steal Data and Control Devices

    January 6, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.