<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nour</title>
    <description>The latest articles on DEV Community by Nour (@nour_sofanati).</description>
    <link>https://dev.to/nour_sofanati</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F143465%2F4b38c0f5-43a9-4aca-8f2c-e7429cb37e79.jpg</url>
      <title>DEV Community: Nour</title>
      <link>https://dev.to/nour_sofanati</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nour_sofanati"/>
    <language>en</language>
    <item>
      <title>Restore or Migrate your MySQL Database to Railway</title>
      <dc:creator>Nour</dc:creator>
      <pubDate>Fri, 03 Nov 2023 14:42:08 +0000</pubDate>
      <link>https://dev.to/simplebackups/restore-or-migrate-your-mysql-database-to-railway-4183</link>
      <guid>https://dev.to/simplebackups/restore-or-migrate-your-mysql-database-to-railway-4183</guid>
      <description>&lt;p&gt;&lt;a href="https://railway.app" rel="noopener noreferrer"&gt;Railway&lt;/a&gt; is a serverless platform that makes it easy to deploy and manage applications and databases. It offers a variety of features, including automatic scaling, high availability, and support for a variety of programming languages and frameworks.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Hrvi_BSYswo"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create a Railway MySQL Database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Navigate to the &lt;a href="https://railway.app/" rel="noopener noreferrer"&gt;Railway Website&lt;/a&gt; and click on "Start new project".&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-start-new-project.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-start-new-project.png" title="Railway Website" alt="Railway Website"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You'll see a prompt asking you what type of project you want to create, type in MySQL and select "Provision MySQL" from the list. &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-project-select.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-project-select.png" title="Railway Project prompt" alt="Railway Project prompt"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once the database is provisioned, click on it &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-db-ready.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-db-ready.png" title="Railway project grid" alt="Railway project grid"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Connect" &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-connect-tab.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-connect-tab.png" title="Railway connect tab" alt="Railway connect tab"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Scroll down to the "Available Variables" section and take note of the MYSQL_URL (your connection string), as you'll need it later. &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-available-variables.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Frailway-available-variables.png" title="Railway connection string" alt="Railway connection string"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Restore a MySQL Dump to Railway.app using SimpleRestore.io
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://simplerestore.io" rel="noopener noreferrer"&gt;SimpleRestore.io&lt;/a&gt; is a user-friendly tool that simplifies the process of restoring a MySQL database. Follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Visit &lt;a href="https://simplerestore.io" rel="noopener noreferrer"&gt;SimpleRestore.io&lt;/a&gt; &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fsimplerestore-io-wizard.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fsimplerestore-io-wizard.png" title="SimpleRestore.io" alt="SimpleRestore.io"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Select your database backup (.tar.gz)" and select your backup archive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter your connection string that you noted down earlier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click "Restore" and wait for the process to complete. &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Fsimplerestore-logs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-to-railway%2Fsimplerestore-logs.png" title="SimpleRestore.io" alt="SimpleRestore.io"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  (Bonus) How to Restore a Railway.app Dump on Your Local Database
&lt;/h2&gt;

&lt;p&gt;If you want to restore the dump to your local MySQL database, follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log in to your local MySQL server.&lt;/li&gt;
&lt;li&gt;Create a new database or select an existing one.&lt;/li&gt;
&lt;li&gt;Use the &lt;code&gt;mysql&lt;/code&gt; command to restore the dump:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mysql &lt;span class="nt"&gt;-u&lt;/span&gt; username &lt;span class="nt"&gt;-p&lt;/span&gt; database_name &amp;lt; dump_file.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;username&lt;/code&gt;, &lt;code&gt;database_name&lt;/code&gt;, and &lt;code&gt;dump_file.sql&lt;/code&gt; with your specific details.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is a MySQL Backup Service?
&lt;/h3&gt;

&lt;p&gt;A MySQL backup service is a tool or platform that allows you to create copies of your MySQL databases, ensuring data protection and recovery in case of unexpected events or data loss.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a MySQL Connection String?
&lt;/h3&gt;

&lt;p&gt;A MySQL connection string is a string that contains the information needed to connect to a MySQL database. It typically includes details like the host, port, username, password, and database name.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a MySQL Dump?
&lt;/h3&gt;

&lt;p&gt;A MySQL dump is a file that contains a SQL script with all the commands needed to recreate a database. It includes table structures and data.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Restore a MySQL Backup?
&lt;/h3&gt;

&lt;p&gt;To restore a MySQL backup, you need to have a dump file. You can use tools like SimpleRestore.io to easily upload and restore the backup to your desired database.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Create a MySQL Backup for Railway.app?
&lt;/h3&gt;

&lt;p&gt;You can create a MySQL backup for &lt;a href="https://railway.app" rel="noopener noreferrer"&gt;Railway.app&lt;/a&gt; using the &lt;a href="https://github.com/mydumper/mydumper" rel="noopener noreferrer"&gt;MyDumper tool&lt;/a&gt; or by using a backup service like &lt;a href="https://simplebackups.com" rel="noopener noreferrer"&gt;SimpleBackups&lt;/a&gt;. Both methods involve generating a dump file that can be used for restoration.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>database</category>
      <category>restore</category>
    </item>
    <item>
      <title>Restore your MySQL Database on PlanetScale</title>
      <dc:creator>Nour</dc:creator>
      <pubDate>Fri, 03 Nov 2023 14:41:45 +0000</pubDate>
      <link>https://dev.to/simplebackups/restore-your-mysql-database-on-planetscale-44fk</link>
      <guid>https://dev.to/simplebackups/restore-your-mysql-database-on-planetscale-44fk</guid>
      <description>&lt;p&gt;&lt;a href="https://planetscale.com/" rel="noopener noreferrer"&gt;PlanetScale&lt;/a&gt; offers a cloud-native, serverless, and multi-cloud MySQL database service. It's designed to provide high availability, scalability, and simplicity for your database needs. With features like automatic sharding, you can scale your database effortlessly.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/2zU_9wd209o"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Create a PlanetScale MySQL Database
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Sign in to your PlanetScale account and navigate to the dashboard.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fplanetscale-create-db.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fplanetscale-create-db.png" title="PlanetScale Dashboard" alt="PlanetScale Dashboard"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Create Database" and follow the prompts to set up your database.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you're done, you'll be redirected to a page where you can create a new password, in order to grab your connection string, select "Rust" or "Prisma" as your framework or programming language.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fplanetscale-select-langauge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fplanetscale-select-langauge.png" title="PlanetScale password creation" alt="PlanetScale password creation"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Take note of your database connection string, as you'll need it later.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How to Restore a PlanetScale Dump on a Remote Database using SimpleRestore.io
&lt;/h2&gt;

&lt;p&gt;SimpleRestore.io is a user-friendly tool that simplifies the process of restoring a MySQL database. Follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Visit &lt;a href="https://simplerestore.io" rel="noopener noreferrer"&gt;SimpleRestore.io&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fsimplerestore-io-wizard.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fsimplerestore.io%2Fassets%2Fposts%2Frestore-your-mysql-database-on-planetscale%2Fsimplerestore-io-wizard.png" title="SimpleRestore.io" alt="SimpleRestore.io"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click on "Select your database backup (.tar.gz)" and select your backup archive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter your connection string that you noted down earlier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click "Restore" and wait for the process to complete.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  (Bonus) How to Restore a PlanetScale Dump on Your Local Database
&lt;/h2&gt;

&lt;p&gt;If you want to restore the dump to your local MySQL database, follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log in to your local MySQL server.&lt;/li&gt;
&lt;li&gt;Create a new database or select an existing one.&lt;/li&gt;
&lt;li&gt;Use the &lt;code&gt;mysql&lt;/code&gt; command to restore the dump:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mysql &lt;span class="nt"&gt;-u&lt;/span&gt; username &lt;span class="nt"&gt;-p&lt;/span&gt; database_name &amp;lt; dump_file.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;username&lt;/code&gt;, &lt;code&gt;database_name&lt;/code&gt;, and &lt;code&gt;dump_file.sql&lt;/code&gt; with your specific details.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is a MySQL Backup Service?
&lt;/h3&gt;

&lt;p&gt;A MySQL backup service is a tool or platform that allows you to create copies of your MySQL databases, ensuring data protection and recovery in case of unexpected events or data loss.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a MySQL Connection String?
&lt;/h3&gt;

&lt;p&gt;A MySQL connection string is a string that contains the information needed to connect to a MySQL database. It typically includes details like the host, port, username, password, and database name.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a MySQL Dump?
&lt;/h3&gt;

&lt;p&gt;A MySQL dump is a file that contains a SQL script with all the commands needed to recreate a database. It includes table structures and data.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Restore a MySQL Backup?
&lt;/h3&gt;

&lt;p&gt;To restore a MySQL backup, you need to have a dump file. You can use tools like SimpleRestore.io to easily upload and restore the backup to your desired database.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to Create a MySQL Backup for PlanetScale?
&lt;/h3&gt;

&lt;p&gt;You can create a MySQL backup for PlanetScale using the &lt;a href="https://github.com/mydumper/mydumper" rel="noopener noreferrer"&gt;MyDumper tool&lt;/a&gt; or by using a backup service like &lt;a href="https://simplebackups.com" rel="noopener noreferrer"&gt;SimpleBackups&lt;/a&gt;. Both methods involve generating a dump file that can be used for restoration.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>planetscale</category>
      <category>database</category>
      <category>restore</category>
    </item>
  </channel>
</rss>
