<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohammad Shuvo on Medium]]></title>
        <description><![CDATA[Stories by Mohammad Shuvo on Medium]]></description>
        <link>https://medium.com/@shuvowizard?source=rss-092131fee267------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jXQFLkvOkhE_H6vW</url>
            <title>Stories by Mohammad Shuvo on Medium</title>
            <link>https://medium.com/@shuvowizard?source=rss-092131fee267------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:53:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shuvowizard/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[XAMPP Error: MySQL Shutdown Unexpectedly — How to Fix It]]></title>
            <link>https://medium.com/@shuvowizard/xampp-error-mysql-shutdown-unexpectedly-how-to-fix-it-aa9dbce634a3?source=rss-092131fee267------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa9dbce634a3</guid>
            <category><![CDATA[mysql]]></category>
            <dc:creator><![CDATA[Mohammad Shuvo]]></dc:creator>
            <pubDate>Fri, 15 Nov 2024 11:12:03 GMT</pubDate>
            <atom:updated>2024-11-15T11:12:03.448Z</atom:updated>
            <content:encoded><![CDATA[<h3>XAMPP Error: MySQL Shutdown Unexpectedly — How to Fix It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E9n1x1oENdArz46Oq3HRpA.png" /><figcaption>Fix MySQL Shutdown Unexpectedly in XAMPP</figcaption></figure><p>If you’re using XAMPP and encounter the error “MySQL Shutdown Unexpectedly,” you might be worried about losing your data or being unable to start MySQL. This issue can occur due to a variety of reasons, such as corrupted database files or misconfigurations. In this post, I’ll walk you through a reliable method to fix this error and restore MySQL on XAMPP.</p><h3>Steps to Fix MySQL Shutdown Unexpectedly in XAMPP</h3><h4>1. Navigate to the XAMPP MySQL Directory</h4><p>First, open your XAMPP installation directory. Typically, it’s located in C:\xampp\ on Windows. Once inside the XAMPP folder, locate the mysql directory: xampp/mysql/</p><h4>2. Rename the Existing data Folder</h4><p>Inside the mysql folder, you’ll see a folder called data. This folder contains your database files. <strong>Rename the </strong>data <strong>folder to </strong>data_old. This step will act as a backup in case something goes wrong with the restoration process.</p><h4>3. Create a New data Folder</h4><p>Now, create a fresh folder named data inside the mysql folder. This is where you’ll restore your MySQL database files.</p><h4>4. Copy Backup Files into the New data Folder</h4><p>Go to the xampp/mysql/backup folder, which contains a backup of your MySQL files. <strong>Copy all the files</strong> from this folder and paste them into the newly created data folder.</p><h4>5. Restore Your Database Files</h4><p>Next, you’ll need to restore your existing databases:</p><ul><li>Open the data_old folder, and <strong>copy all the database folders</strong> (except mysql, performance_schema, and phpMyAdmin) into the new data <strong>folder</strong>.</li><li><strong>Do not copy the </strong>mysql<strong>, </strong>performance_schema<strong>, or </strong>phpMyAdmin <strong>folders</strong>, as these contain system databases and should remain unchanged.</li></ul><h4>6. Replace the ibdata1 File</h4><p>Inside the data_old folder, look for the file named ibdata1. This file contains important data for your MySQL instance.</p><ul><li><strong>Copy the </strong>ibdata1 <strong>file</strong> from the data_old <strong>folder and replace the existing </strong>ibdata1 <strong>file</strong> in the new data <strong>folder</strong>. This step is crucial for recovering your databases.</li></ul><h4>7. Restart MySQL from XAMPP</h4><p>Once you’ve completed the above steps, go back to the <strong>XAMPP Control Panel</strong> and try restarting MySQL. You should now be able to start MySQL without any issues.</p><h4>Why Does This Work?</h4><p>This process restores the necessary files from the backup folder and your original database files. By copying and replacing the database data, you effectively “rebuild” the MySQL data folder without losing your existing data.</p><h3>Conclusion</h3><p>If you’ve encountered the “MySQL Shutdown Unexpectedly” error in XAMPP, this method is a reliable way to resolve it. Following these simple steps, you can restore your MySQL instance and get back to working with your databases.</p><p>If the problem persists, consider checking your MySQL error logs located in the xampp/mysql/data For more specific details, try reinstalling MySQL on XAMPP if necessary.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa9dbce634a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set Up SSH Keys for Secure Authentication (A Step-by-Step Guide)]]></title>
            <link>https://medium.com/@shuvowizard/set-up-ssh-keys-for-secure-authentication-a-step-by-step-guide-4373513b8679?source=rss-092131fee267------2</link>
            <guid isPermaLink="false">https://medium.com/p/4373513b8679</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[security-token]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[ssh-keys]]></category>
            <dc:creator><![CDATA[Mohammad Shuvo]]></dc:creator>
            <pubDate>Sat, 12 Oct 2024 09:05:04 GMT</pubDate>
            <atom:updated>2024-10-12T09:09:58.650Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2s1dRfiAlpICTasUBJ8VQ.png" /></figure><p>If you’re tired of entering your password every time you push to GitHub or connect to a remote server, it’s time to set up SSH keys. Not only does SSH authentication make things faster, but it’s also more secure. This guide will walk you through generating and setting up SSH keys on your computer.</p><h4>What are SSH Keys?</h4><p>SSH (Secure Shell) keys are an alternative to passwords for authentication. Instead of typing a password every time you connect to a remote server or a service like GitHub, your computer can use a key pair (one public and one private key) to verify your identity securely.</p><h4>Why Use SSH Keys?</h4><ul><li><strong>Convenience:</strong> Once set up, you can authenticate without typing passwords.</li><li><strong>Security:</strong> SSH keys are more secure than using traditional passwords.</li><li><strong>Automation</strong>: They allow you to automate connections to servers and services without compromising security.</li></ul><h3>Step-by-Step Guide: Setting Up SSH Keys</h3><h4>1. Check for Existing SSH Keys</h4><p>Before creating a new SSH key pair, check if you already have one on your machine.</p><p><strong>How to Check: </strong>On Windows (using Git Bash) or on macOS/Linux:</p><pre>ls -al ~/.ssh</pre><p>This will list all the files in your .ssh directory. You already have keys if you see files like id_rsa (private key) and id_rsa.pub (public key).</p><h4>2. Generate a New SSH Key</h4><p>If you don’t have an SSH key or want to generate a new one, use the ssh-keygen command to create one.</p><p><strong>How to Generate: </strong>In your terminal, run the following command to create a 4096-bit RSA key (recommended for strong security):</p><pre>ssh-keygen -o -t rsa -b 4096 -C &quot;your_email@example.com&quot;</pre><p><strong>Here’s what each option means:</strong></p><ul><li>-o: Ensures your private key uses the newer OpenSSH format.</li><li>-t rsa: Specifies the key type (RSA in this case).</li><li>-b 4096: Specifies the key size (4096 bits for stronger encryption).</li><li>-C “<a href="/service/mailto:your_email@example.com">your_email@example.com</a>”: Adds a label to the key, typically your email.</li></ul><p><strong>When prompted:</strong></p><ul><li>Press Enter to accept the default location (~/.ssh/id_rsa).</li><li>Choose whether or not to set a passphrase for extra security (optional).</li></ul><h4>3. Start the SSH Agent</h4><p>The SSH agent is a background process that manages your SSH keys and prevents you from re-entering your passphrase multiple times.</p><p><strong>How to Start the SSH Agent</strong>: In your terminal, run:</p><pre>eval &quot;$(ssh-agent -s)&quot;</pre><p>This starts the SSH agent and gives you its process ID.</p><h4>4. Add Your SSH Key to the Agent</h4><p>Now that the agent is running, you need to add your private SSH key so that it can manage it.</p><p><strong>How to Add Your Key:</strong></p><pre>ssh-add ~/.ssh/id_rsa</pre><h4>5. Add Your SSH Key to GitHub (or Other Services)</h4><p>Now, let’s add your SSH public key to GitHub or another service where you plan to use it.</p><p><strong>How to Copy Your Public Key: </strong>You need to copy the public key to add it to services like GitHub.</p><p><strong>On Windows (Git Bash) or macOS/Linux:</strong></p><pre>cat ~/.ssh/id_rsa.pub</pre><p>This will print your public key to the terminal. Copy it manually if needed.</p><h4>6. How to Add to GitHub:</h4><ol><li>Go to your GitHub account.</li><li>Click on Settings (top-right corner).</li><li>Navigate to SSH and GPG keys.</li><li>Click on New SSH key.</li><li>Paste your copied public key into the Key field and give it a recognizable title.</li><li>Click Add SSH key.</li></ol><p>For other services like GitLab, Bitbucket, or any remote server, the process is similar.</p><h4>7. Test Your SSH Connection</h4><p>Finally, verify that everything is working by testing your SSH connection to GitHub.</p><p><strong>How to Test:</strong></p><pre>ssh -T git@github.com</pre><p>You should see a message like:</p><pre>Hi your_username! You&#39;ve successfully authenticated, but GitHub does not provide shell access.</pre><p>Congratulations! You’ve successfully set up SSH key authentication.</p><h4>Summary</h4><p>By following these steps, you’ve set up SSH keys for seamless, secure authentication with services like GitHub. This not only makes managing your projects easier but also enhances the security of your connections.</p><p><strong>Key Points Recap:</strong></p><ul><li>SSH keys provide password-less authentication.</li><li>You can use them with GitHub, GitLab, Bitbucket, and remote servers.</li><li>The SSH agent makes it easier to manage your keys securely.</li></ul><p>Now, you’re ready to push code or connect to servers without needing to enter a password each time — enjoy the convenience and security of SSH keys!</p><p><em>Have any questions or run into issues? Feel free to ask in the comments, and I’d be happy to help!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4373513b8679" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>