<?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: Arun Kumar</title>
    <description>The latest articles on DEV Community by Arun Kumar (@arun555).</description>
    <link>https://dev.to/arun555</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%2F1855472%2F40b2964b-2864-44e9-95be-c08d8c072d38.png</url>
      <title>DEV Community: Arun Kumar</title>
      <link>https://dev.to/arun555</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arun555"/>
    <language>en</language>
    <item>
      <title>Step-by-Step Guide to Resolve Access Database Loading DLL Error</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Wed, 25 Feb 2026 12:01:09 +0000</pubDate>
      <link>https://dev.to/arun555/step-by-step-guide-to-resolve-access-database-loading-dll-error-1987</link>
      <guid>https://dev.to/arun555/step-by-step-guide-to-resolve-access-database-loading-dll-error-1987</guid>
      <description>&lt;p&gt;While accessing ActiveX Data Objects to import an Access database from one application into another—using the query wizard, report wizard, and control wizard—you may encounter the run-time error 48: "Error in loading DLL." This error may also appear as "Object library not registered." It often occurs when the application fails to load the DLL file - a component of Windows operating system, which is required to run the applications smoothly. The reasons why DLL fails, are many. In this article, we will discuss the common causes that might be responsible for this error. We will also provide solutions to resolve this Access database loading error. In case your Access database is corrupted, it is suggested to use a powerful &lt;a href="https://www.stellarinfo.com/access-database-repair.php" rel="noopener noreferrer"&gt;Access recovery software&lt;/a&gt; that can help resolve the issue within minimum time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Causes for Access Database Loading DLL Error&lt;/strong&gt;&lt;br&gt;
This error 48 is directly related to DLL files. It can occur due to one or more of the following reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  The DLL used by Access application fails to export its function properly. It usually occurs when Access fails to find the required entries of the function.&lt;/li&gt;
&lt;li&gt;  The Access application you’re running is 64-bit, and you’re using the DLL file with 32-bit.&lt;/li&gt;
&lt;li&gt; You're using VBA code to link/import a library that contains the incorrect references.&lt;/li&gt;
&lt;li&gt; DLL file is corrupted or outdated.&lt;/li&gt;
&lt;li&gt; DLL file is not compiled or registered correctly.&lt;/li&gt;
&lt;li&gt; DLL file is not present at the path specified in the directory.&lt;/li&gt;
&lt;li&gt; Windows registry issues caused damage to the DLL file.&lt;/li&gt;
&lt;li&gt; Damaged Access installation.&lt;/li&gt;
&lt;li&gt; Registry keys may not exist.
&lt;strong&gt;Methods to Resolve Access Database Loading DLL Error&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Basis troubleshooting steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Make sure the DLL file is present and registered.&lt;/li&gt;
&lt;li&gt; Check the compatibility of the DLL file. If you're using 64-bit Access, make sure the DLL file is also 64-bit. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here are the advanced methods you can follow to resolve the Access database loading DLL error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 1 - Register Dao360 and Msado15 DLL Files&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As we all know, the Access application allows you to connect to other database files like MDF, using linked tables or external data sources. Such a database connection requires DAO/ADO libraries, which work with Dao360.dll and Msado15.dll. If, for any reason, these DLLs fail to load, it leads to the Error 48: error in loading DLL. To resolve this, you can re-register these DLL files by following these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Open the Run window and type the below command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Regsvr32.exe "C:\Program Files\Common Files\Microsoft Shared\DAO\Dao360.dll
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;  Next, type the following command:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Regsvr32.exe "C:\Program Files\Common Files\system\ado\Msado15.dll"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;  Click OK.
These commands will re-register these Access-based DLL files&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Method 2 - Repair and Clear the Registry&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Windows Registry logs every action that takes place in the system. When the DLL error 48 occurs, the Windows Registry gets updated simultaneously. Checking the Windows Registry can help you fix and clear the error. You can use the Windows Registry checker tool to scan the system registry for invalid entries. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 3 - Reinstall the Access Application&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can try reinstalling your Access application. This helps in replacing the corrupted or damaged program files, restoring missing or unregistered DLLs, and broken registry entries. But as you already know that DLLs are shared across multiple applications, it is recommended to first check Access' DLL before uninstalling. If you uninstall or install the Access application, which already shares its DLL, it can cause errors in associated applications. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What If the Access Database gets Corrupted due to DLL Issues?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The DLL error can crash your Access application and lead to database corruption. If the Access database is corrupted, damaged, or in an inconsistent state, then you can try importing the data from the affected database into a new database. The steps are as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  In MS Access application, click the External Data option.&lt;/li&gt;
&lt;li&gt;  Then, select the Import Access Database option.&lt;/li&gt;
&lt;li&gt;  In the Get External Data - Access Database window, select the “Import tables, forms, reports, macros, and modules into the current database” option.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa9frmexodz29smepbrw4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa9frmexodz29smepbrw4.png" alt=" " width="615" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; Select the objects and VBA module from the database that you want to import into the new database, and then click OK.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This method will help you import all the selected objects from the affected database to a new database file. If it fails, then you can &lt;a href="https://www.stellarinfo.com/blog/compact-and-repair-access-database-without-opening/" rel="noopener noreferrer"&gt;Compact and Repair&lt;/a&gt; the Access database. This removes the unutilized space and compacts the database, and then tries to repair it. Before using the Compact and Repair tool, make sure no other user is actively using the database file. This tool may not repair severely corrupted VBA modules and may fail to resolve complex corruption-based errors. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An Alternative Solution to Quickly Repair the Access Database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Alternatively, you can use &lt;a href="https://www.stellarinfo.com/access-database-repair.php" rel="noopener noreferrer"&gt;Stellar Repair for Access&lt;/a&gt; - a professional database repair tool. It can help in resolving all types of complex corruption-based issues in Access database. It quickly repairs critically corrupted ACCDB files, MDF files, and split databases. Additionally, it performs recovery of corrupt VBA modules, like macros, indexes, queries, etc. The product is considered to be a life-saving utility for database administrators who couldn’t afford to lose their records by means of any corruption or database errors. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When the DLL fails to load with the error 48, it may crash your Access application's active window or you may experience repeated system crashes as the DLLs are shared libraries used to run multiple applications. If the sudden system crashes have corrupted the Access database files, then you can take the help of a professional Access repair tool, such as Stellar Repair for Access to repair them in a few minutes.&lt;/p&gt;

</description>
      <category>accessdatabase</category>
      <category>microsftaccess</category>
      <category>webdev</category>
      <category>repairaccess</category>
    </item>
    <item>
      <title>How to Perform Point-in-Time Recovery in MySQL - A Step-by-Step Guide</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Tue, 09 Dec 2025 09:55:38 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-perform-point-in-time-recovery-in-mysql-a-step-by-step-guide-506m</link>
      <guid>https://dev.to/arun555/how-to-perform-point-in-time-recovery-in-mysql-a-step-by-step-guide-506m</guid>
      <description>&lt;p&gt;Point-in-time recovery (PITR) is one of the data recovery methods in MySQL Server that helps you restore data to a specific moment in the past, rather than the complete backup. This you can use when you just need to undo/rollback unwanted changes made to the database since the last backup. In other words, it allows you to return the database to the state before something went wrong. &lt;/p&gt;

&lt;p&gt;Here are some situations where Point-in-Time Recovery comes into the picture:&lt;/p&gt;

&lt;p&gt;• If you have mistakenly used the DROP or DELETE command and removed an important table from the MySQL database. &lt;br&gt;
• If you forgot to include the WHERE clause and deleted all rows from a table. &lt;br&gt;
• If hard-disk issues or system crash leave your MySQL data in an inconsistent state.&lt;/p&gt;

&lt;p&gt;In this post, we will mention the process to perform point-in-time recovery in MySQL. If PITR fails or you fail to open the MySQL tables after restoring, then you can use a professional MySQL recovery tool mentioned in this post.&lt;/p&gt;

&lt;p&gt;Key Things to Consider for Point-in-Time Recovery in MySQL&lt;/p&gt;

&lt;p&gt;Here are some things to consider to perform point-in-time recovery in MySQL Server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full Backup:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A full backup contains the complete database at a specific time. It serves as the initial point for PITR and enables incremental changes&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Binary Logs:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The binary log files record all changes made to the database and allow you to replay those changes to a required specific point. These are version-specific, so make sure the version of the MySQL Server you're using to restore the backup is compatible with the version that created the binary logs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Storage Engine Compatibility:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As MyISAM is non-transactional and lacks advanced features, like crash recovery and transactions, it does not provide consistent recovery using point-in-time. The PITR process relies entirely on binary logs, which record changes to the database as transactions occur. So, make sure you’re using the PITR method to recover InnoDB tables in MySQL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check and Find Target Recovery Point:&lt;/strong&gt;&lt;br&gt;
You should know the exact time when the corruption or accidental deletion occurred to perform point-in-time recovery.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check Permissions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Make sure you've the desired permissions, like SUPER, DROP, SELECT, CREATE, etc., to restore the MySQL database. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Procedure to Perform Point-in-Time Recovery in MySQL Server/Workbench&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can perform point-in-time recovery using Binary Log file. Here are the detailed steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1 - Check the Error Logs&lt;/strong&gt;&lt;br&gt;
This helps in finding the exact time or event when corruption/issue occurs. You can find the error log in configuration file, which is located in your MySQL installation directory. Next, check for entries with InnoDB-related errors and warnings, and note the timestamp when corruption/issue was reported. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2 - Restore the Full Backup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now restore the full back up. You can use the command-line utility - Mysqldump to restore the backup file in MySQL. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3 - Locate Binary Logs&lt;/strong&gt;&lt;br&gt;
First, make sure the binary logging is enabled on your MySQL Server to perform the point-in-time recovery. To verify this, run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mysql&amp;gt; SHOW VARIABLES LIKE 'log_bin';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next, run mysqlbinlog utility to find and process binary logs. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4 - Filter Logs to Recovery Point&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The binary logs record events related to modifications to the contents of your database. The binary logs record info according to the time or position of events. This content is in binary format. You can use mysqlbinlog file to open and view the file in a text editor. Next, use the time-stamp or log position to extract transaction specific to the moment before corruption/issue. Here are the commands:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mysqlbinlog --stop-datetime="2025-11-25 10:00:00" mysql-bin.000001 &amp;gt; recovery.sql&lt;br&gt;
mysqlbinlog --stop-position=12345 mysql-bin.000001 &amp;gt; recovery.sql&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5 - Replay the Logs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once you have filtered the logs, then apply the filtered logs and restore database using the below command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mysql -u root -p &amp;lt; recovery.sql&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limitations of Point-in-Time Recovery&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The point-in-recovery method can help you recover the data to a specific moment, but it has some limitations, such as: &lt;/p&gt;

&lt;p&gt;• Not suitable to recover severely corrupted MySQL tables &lt;br&gt;
• Does not work if backup file is not readable &lt;br&gt;
• Required readable Binary Log file &lt;br&gt;
• Binary logging should be enabled&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alternative Tool to Restore MySQL Database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In point-in-time recovery, you require full backup and binary logs. If binary log file or backup (dump) file is corrupted or unavailable, then PITR is not possible. Also, this method may not work if the MySQL database file is severely corrupted or if the database you’re trying to recover is created with MyISAM engine. To repair the InnoDB and MyISAM tables quickly without backup or binary log file, you can use a professional MySQL repair tool, such as &lt;a href="https://www.stellarinfo.com/mysql-repair.php" rel="noopener noreferrer"&gt;Stellar Repair for MySQL&lt;/a&gt;. It helps in specific object recovery with no data loss. Also, it helps in resolving complex corruption errors in both transactional and non-transactional tables in MySQL. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To Conclude&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can use point-in-time recovery feature in MySQL Server to recover data. It allows you to easily restore the data to a precise moment, which helps in minimizing workflow disruption. Follow this post to perform point-in-time recovery in a smooth way. If disabled binary logging or incomplete backup has prevented you from performing PITR, then you can rely on a professional MySQL repair tool – Stellar Repair for MySQL. It can help you recover InnoDB and MyISAM tables with complete integrity.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>database</category>
      <category>mariadb</category>
      <category>programming</category>
    </item>
    <item>
      <title>mysqld Crashes with Signal 11 and Page Corrupt Error</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Mon, 29 Sep 2025 07:26:59 +0000</pubDate>
      <link>https://dev.to/arun555/mysqld-crashes-with-signal-11-and-page-corrupt-error-1dpg</link>
      <guid>https://dev.to/arun555/mysqld-crashes-with-signal-11-and-page-corrupt-error-1dpg</guid>
      <description>&lt;p&gt;Many MySQL users have reported encountering an issue where their MySQL Server crashes with the “mysqld got signal 11” error, along with some hexadecimal code. This is a run-time error that the operating system throws when there is a segmentation fault. You can see this error while using MySQL in Linux/Unix-based environments, like Ubuntu, CentOS, etc. It indicates that the mysqld service or MySQL Workbench failed when it tried to access an invalid memory segment. It can happen due to various reasons, such as: &lt;/p&gt;

&lt;p&gt;• Bugs in the MySQL binary or linked libraries &lt;br&gt;
• Misconfigured MySQL configuration file &lt;br&gt;
• Corruption in system memory&lt;br&gt;
• Hardware issues &lt;br&gt;
• Corruption in InnoDB tables &lt;br&gt;
• Corrupt index records or pages in the MySQL database&lt;br&gt;
• Bugs in MySQL server plugins &lt;/p&gt;

&lt;p&gt;In this article, we will discuss the troubleshooting methods to resolve the mysqld got signal 11 error in MySQL Server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Methods to Resolve MySQL Server crashes with mysqld got Signal 11 Error&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The mysqld got signal 11 error usually occurs due to bugs in the MySQL Server or its plugins, misconfigured configuration files, or corruption in data or indexes. You can follow the methods mentioned below to identify the root cause of the error and troubleshoot it effectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 1 – Use Stack Trace in the Error Log&lt;/strong&gt;&lt;br&gt;
The MySQL error log contains a stack trace that records complete details related to the mysqld crash. This trace helps identify the function calls that lead to the crash, detect failed operations, faulty MySQL plugins, bugs in code, and memory address issues in the binaries.&lt;br&gt;
You can use the stack trace in the error log to find out the cause behind the mysqld crashes with signal 11. Here’s how to find the stack trace:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: Stack trace works only if you have not used the -fomit-frame-pointer option with GCC while compiling mysqld. To read the stack trace accurately, ensure MySQL is not compiled with this option.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;• Locate the MySQL error log by following the below path:&lt;br&gt;
/var/log/mysql/error.log&lt;br&gt;
• In the error log, search for “Stack Trace”. It looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mysqld got signal 11;
Attempting backtrace. You can use the following information
to find out where mysqld died. If you see no messages after
this, something went terribly wrong...

stack_bottom = 0x41fd0110 thread_stack = 0x40000
mysqld(my_print_stacktrace+0x32)[0x9da402]
mysqld(handle_segfault+0x28a)[0x6648e9]
/lib/libpthread.so.0[0x7f1a5af000f0]
/lib/libc.so.6(strcmp+0x2)[0x7f1a5a10f0f2]
mysqld(_Z21check_change_passwordP3THDPKcS2_Pcj+0x7c)[0x7412cb]
mysqld(_ZN16set_var_password5checkEP3THD+0xd0)[0x688354]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;• Read and understand the information in the stack trace carefully. Next, use the addr2line utility to decode addresses from the stack trace into human-readable language. This utility is available in the binutils package on Linux. For example, to decode &lt;strong&gt;mysqld(_Z21check_change_passwordP3THDPKcS2_Pcj+0x7c)[0x7412cb]&lt;/strong&gt; using this utility, run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$&amp;gt; addr2line -fie /usr/sbin/mysqld 0x7412cb
check_change_password
mysql-server/sql/sql_acl.cc:1234

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It will display the check_change_password function behind the mysqld crash, along with the exact line number in the code. Once you have found the exact function name, then try to fix the issue. For example, as displayed above, there is an issue in the check_change_password function. So, locate the MySQL source code in the &lt;a href="https://dev.mysql.com/doc/refman/8.4/en/data-directory.html" rel="noopener noreferrer"&gt;MySQL data directory&lt;/a&gt; to fix it. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 2 - Enable InnoDB Recovery Mode and Use the Drop and Reload Method&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The MySQL "got signal 11" error can also occur if corruption is present in pages, indexes, or InnoDB tables (.ibd or ibdata1) files. In such a case, you can use innodb_force_recovery to enable the recovery mode. Enabling this option skips the crash recovery and allows MySQL to start. Next, repair the InnoDB tables using the Drop and Reload method. Here’s how to do so:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_Note&lt;/strong&gt;: Before proceeding, create a backup of the database_&lt;/p&gt;

&lt;p&gt;• Enable InnoDB Recovery Mode to access inaccessible MySQL tables. For this, change the my.cnf configuration file. The configuration file is located at /var/log/mysql/error.log.&lt;br&gt;
Alternatively, you can run the below command to go to the configuration file:&lt;br&gt;
&lt;code&gt;sudo nano /etc/mysql/my.cnf&lt;/code&gt;&lt;br&gt;
• Add the below line under the [mysqld] section:&lt;br&gt;
&lt;code&gt;innodb_force_recovery=1&lt;/code&gt;&lt;br&gt;
• You can increase the recovery level from 1-6. However, setting the value to 4 or above can cause data loss. &lt;br&gt;
• After changes, save the file and restart MySQL. &lt;/p&gt;

&lt;p&gt;Now, dump and reload the tables using the below steps: &lt;/p&gt;

&lt;p&gt;• First, dump all the tables in the MySQL database.&lt;br&gt;
&lt;code&gt;mysqldump -u [username] -p [database_name] [table_name] &amp;gt; dump.sql&lt;br&gt;
mysql -u [username] -p [database_name] &amp;lt; dump.sql&lt;/code&gt;&lt;br&gt;
• Next, drop and recreate the table.&lt;br&gt;
&lt;code&gt;DROP TABLE [table_name];&lt;br&gt;
CREATE TABLE [table_name] (...);&lt;/code&gt;&lt;br&gt;
• Then, rebuild the table using the ALTER statement.&lt;br&gt;
&lt;code&gt;sql&lt;br&gt;
ALTER TABLE [table_name] ENGINE=InnoDB;&lt;/code&gt;&lt;br&gt;
• Next, disable the InnoDB recovery mode by using this line of code:&lt;br&gt;
&lt;code&gt;#innodb_force_recovery=…&lt;/code&gt;&lt;br&gt;
• Save the changes made to the configuration file and then start the MySQL Server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repair MySQL Database using a Professional MySQL Repair Tool&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If corruption in the database is too high, you can use a professional MySQL repair tool, like Stellar Repair for MySQL. It can repair corrupted tables created in InnoDB and MyISAM storage engines, with complete integrity. It can restore all the data from .ibd and .ibdata1 files, including indexes, tablespaces, and keys, without any modifications. The tool is compatible with Linux and Windows operating systems. It helps you resolve all the corruption-related errors, including fatal errors that occur due to database corruption. It can repair databases created in MySQL 8.0.36 and earlier versions. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You may face a situation where the MySQL Server crashes with the “mysqld got signal 11” error. It can occur due to various reasons. If the error has occurred due to corruption in InnoDB tablespace or data files, you can try starting MySQL in recovery mode using the innodb_force_recovery option. If the corruption is severe, you can use an advanced MySQL repair tool, like &lt;a href="//www.stellarinfo.com/mysql-repair.php"&gt;Stellar Repair for MySQL&lt;/a&gt;. It can repair corrupt MySQL database files with ease. It can recover all the data from damaged or corrupted MySQL database files. &lt;/p&gt;

</description>
      <category>mariadb</category>
      <category>database</category>
      <category>mysql</category>
      <category>sql</category>
    </item>
    <item>
      <title>Incorrect PFS Free Space Information Error in SQL Server: A DBA’s Guide</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Thu, 31 Jul 2025 09:08:26 +0000</pubDate>
      <link>https://dev.to/arun555/incorrect-pfs-free-space-information-error-in-sql-server-a-dbas-guide-3kgk</link>
      <guid>https://dev.to/arun555/incorrect-pfs-free-space-information-error-in-sql-server-a-dbas-guide-3kgk</guid>
      <description>&lt;p&gt;&lt;em&gt;“Incorrect PFS free space information for page (1:103151) in object ID 1993058136, index ID 1, partition ID 72057594434682880, alloc unit ID 71906736119218176 (type LOB data).”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This error typically indicates a mismatch between the actual page allocation and what’s recorded in the Page Free Space (PFS) pages. It can affect database consistency checks and indicates underlying corruption in the database file. In this article, we will see how to fix the “incorrect PFS free space information for page” error in SQL Server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Causes for Incorrect PFS Free Space Information Error in SQL Server
&lt;/h2&gt;

&lt;p&gt;This error occurs when there is some issue with page free space (PFS) pages. The PFS pages can become inconsistent or corrupted due to one of the following reasons:&lt;/p&gt;

&lt;p&gt;• Corruption in SQL Server database. &lt;br&gt;
• Bugs in MS SQL Server.&lt;br&gt;
• Bad sectors on the disk storing the database.&lt;br&gt;
• System where the database is located is virus-infected.&lt;br&gt;
• Sudden system shutdown.&lt;/p&gt;
&lt;h2&gt;
  
  
  Methods to Resolve Incorrect PFS Free Space Information Error in SQL Server
&lt;/h2&gt;

&lt;p&gt;The error message usually displays the information related to the problematic pages. You can try the below troubleshooting methods to resolve the error.&lt;/p&gt;
&lt;h2&gt;
  
  
  Method 1: Move Data to New Pages
&lt;/h2&gt;

&lt;p&gt;If the error message contains the name of table in which corrupt PFS pages are stored, you can try moving the data from that table to a new table. To copy the table data, run the SELECT command as shown below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`SELECT * INTO newtablename FROM damagedtable`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, delete the original table to clear the problematic PFS entries. Then, rename the new table with the name of original table. To rename the table, use the ALTER TABLE command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER TABLE damagedtable
RENAME TO newtablename;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Method 2: Restore Database from Backup
&lt;/h2&gt;

&lt;p&gt;If you have an updated database backup file, you can restore the backup file. It helps you replace corrupt pages metadata with the clean data. To restore the backup file, run the following query:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RESTORE DATABASE databasetest17 
FROM DISK = 'Z:\SQLServerBackups\databasetest13.bak' ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It restores the entire database from backup, rather than specific pages. &lt;/p&gt;

&lt;h2&gt;
  
  
  Method 3: Perform Page-Level Restore
&lt;/h2&gt;

&lt;p&gt;If the error message displays information related to a problem with pages, then you can perform Page-level Restore. This will help you to restore only the corrupt pages. However, it does not restore the Transaction logs, Allocation pages, Page 0 of all data files (the file boot page), Page 1:9 (the database boot page), and Full-text catalog.&lt;/p&gt;

&lt;p&gt;You can use the &lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/backup-restore/restore-pages-sql-server?view=sql-server-ver16" rel="noopener noreferrer"&gt;SQL Server Management Studio (SSMS) to restore the pages&lt;/a&gt; or use the following T-SQL command:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; You must know the File ID where the page is located and the Page ID of corrupted page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RESTORE DATABASE &amp;lt;database_name&amp;gt; 
 PAGE = '&amp;lt;file: page&amp;gt; [ ,... n ] ' [ ,... n ]
 FROM &amp;lt;backup_device&amp;gt; [ ,... n ]
 WITH NORECOVERY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Method 4: Use DBCC CHECKDB Command
&lt;/h2&gt;

&lt;p&gt;You can also use the DBCC CHECKDB command to repair the corrupt SQL database. Here’s how to use the command with REPAIR_ALLOW_DATA_LOSS option:&lt;br&gt;
• First, set the database in single-user mode by running the below command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER DATABASE databasetest17   SET SINGLE_USER
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;• Then, run the below command to repair the database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DBCC CHECKDB (N ’ databasetest17  ’, REPAIR_ALLOW_DATA_LOSS) WITH ALL_ERRORMSGS, NO_INFOMSGS;
GO
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;• After repairing the database, set it to multi-user mode by using the below command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ALTER DATABASE databasetest17  SET MULTI_USER
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;_&lt;em&gt;Note:&lt;/em&gt; Repairing the database with the REPAIR_ALLOW_DATA_LOSS option may deallocate pages or a series of pages. This may result in some data loss._&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 5: Repair Database using a Professional SQL Repair Tool
&lt;/h2&gt;

&lt;p&gt;To avoid data loss and quickly repair the corrupt SQL database, you can use a reliable SQL database repair tool. Stellar Repair for MS SQL is one such MVPs-recommended tool to repair corrupt SQL database of any size. It recovers all the objects, including pages, PFS, triggers, procedures, etc. from damaged MDF/NDF file with complete precision and integrity. It can help resolve corruption-related errors, including the page allocation errors. The tool is compatible with SQL Server 2019, 2017, and earlier versions. It supports both Windows and Linux operating systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The “Incorrect PFS Free Space Information” error is one of the errors related to page corruption in SQL Server. The most reliable method is to repair the corrupt NDF/MDF file by using a &lt;a href="https://www.stellarinfo.com/sql-database-repair.php" rel="noopener noreferrer"&gt;MS SQL repair tool&lt;/a&gt;, such as Stellar Repair for MS SQL. It can repair corrupt database files and recover all the objects, including PFS, pages, and indexes, without any data loss. The tool supports all SQL Server versions. &lt;/p&gt;

</description>
      <category>sqlserver</category>
      <category>databasecorruption</category>
      <category>sqlrepair</category>
    </item>
    <item>
      <title>How to Fix Data Corruption in MariaDB after Improper Shutdown?</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Fri, 20 Dec 2024 05:22:59 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-fix-data-corruption-in-mariadb-after-improper-shutdown-177b</link>
      <guid>https://dev.to/arun555/how-to-fix-data-corruption-in-mariadb-after-improper-shutdown-177b</guid>
      <description>&lt;p&gt;If the MariaDB Server or system is improperly shutdown, it can interrupt the read/write process leading to corruption in the database file. When the database is corrupt, it prevents you from dumping the data and throws an error, like mysqldump: Error 1034: Index for table 'statistics' is corrupt; try to repair it when dump, MariaDB [mysql]&amp;gt; DROP FUNCTION IF EXISTS civicrm_strip_non_numeric; ERROR 1728 (HY000): Cannot load from MySQL.proc. The table is probably corrupted, etc. Sometimes, you even fail to open or access the database. In this article, we will learn how to repair and restore corrupt MariaDB database. &lt;/p&gt;

&lt;h2&gt;
  
  
  How to Detect Corruption in MariaDB Database?
&lt;/h2&gt;

&lt;p&gt;First, you need to check the MariaDB database tables for corruption issues using the CHECK TABLE command. This command checks views, foreign keys, and other referenced tables in the MariaDB. It supports Aria, Archive, CSV, InnoDB, and MyISAM storage engines. Here is how to use the CHECK TABLE command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CHECK TABLE tbl_name [, tbl_name] ... [option] ...&lt;br&gt;
option = {FOR UPGRADE | QUICK | FAST | MEDIUM | EXTENDED | CHANGED}&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
The command also supports partitioned tables. But to check partitioned tables, you need to add &lt;a href="https://mariadb.com/kb/en/alter-table/" rel="noopener noreferrer"&gt;an ALTER statement&lt;/a&gt; to the CHECK TABLE command. &lt;/p&gt;

&lt;p&gt;If the CHECK TABLE command detects any issue in the tables, the InnoDB engine will intentionally cause the MariaDB server to crash to prevent additional damage. &lt;/p&gt;

&lt;h2&gt;
  
  
  Resolve Data Corruption in MariaDB after Improper Shutdown
&lt;/h2&gt;

&lt;p&gt;You can follow the below methods to repair and restore the corrupt MariaDB database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 1: Restore MariaDB Database from Backup
&lt;/h2&gt;

&lt;p&gt;If you have a valid, recent backup of the MariaDB database file, a simple option is to restore the backup file. For this, you can use the Mariabackup - an open source utility that restores databases in MariaDB. You can use the –copy-back command to restore the backup file. It restores the entire backup to the data directory. So, it is necessary to empty the data directory (--datadir) before performing the action. The configuration file of your system for the data directory is located at /etc/mysql/my. cnf. Follow the below steps to restore the backup:&lt;/p&gt;

&lt;p&gt;• First, you need to stop the MariaDB server services. For this, run the below command: &lt;br&gt;
&lt;code&gt;mysql.server stop&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• Then, run the below command to use the Mariabackup utility with the –copy-back option: &lt;br&gt;
&lt;code&gt;$ mariabackup --copy-back \&lt;br&gt;
--target-dir=/var/mariadb/backup/&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• Next, change the ownership of the data directory file using the below command:&lt;br&gt;
&lt;code&gt;$ chown -R mysql:mysql /var/lib/mysql/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• Now, run the below command to restart the services of MariaDB Server:&lt;br&gt;
mysql.server start&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 2: Repair Corrupt Tables
&lt;/h2&gt;

&lt;p&gt;If the backup file is not available, then you can use the myisamchk command to recover all the data from corrupt tables, except unique keys. Before using this command, first stop the server using mysqld stop and then recover the data by executing the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;myisamchk –recover TABLE&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next, use the below command to restart the server:&lt;br&gt;
&lt;code&gt;mysqld start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Alternatively, you can use the REPAIR TABLE command to repair the corrupt data in MariaDB MyISAM tables. Here’s how:&lt;/p&gt;

&lt;p&gt;• First, run the SHOW GRANTS command as given below to check the permissions on the table.&lt;br&gt;
&lt;code&gt;SHOW GRANTS [FOR user|role]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• Check the permissions and ensure that you have all the privileges on the tables, especially SELECT and INSERT privileges. &lt;/p&gt;

&lt;p&gt;• Then, run the REPAIR TABLE command as given below:&lt;br&gt;
&lt;code&gt;REPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE&lt;br&gt;
    tbl_name [, tbl_name] ...&lt;br&gt;
    [QUICK] [EXTENDED] [USE_FRM]&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Method 3: Use the Dump and Reload Method
&lt;/h2&gt;

&lt;p&gt;If you’re trying to repair the InnoDB tables in MariaDB, then you can use the Dump and Reload method. The InnoDB engine deliberately causes the MariaDB Server to crash if it finds corruption in tables. If the server crashes, then first restart the server using the –innodb-force-recovery=# option. Next, follow the below steps:&lt;/p&gt;

&lt;p&gt;• Dump data from the affected MariaDB table using the &lt;a href="https://dev.mysql.com/doc/refman/8.4/en/select.html" rel="noopener noreferrer"&gt;SELECT command&lt;/a&gt;. &lt;br&gt;
• Run the SHOW CREATE TABLE command (see the below example) to check the declaration and structure of the corrupt table.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SHOW CREATE TABLE table_name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• After this, use the same structure to create a new table by using the below command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CREATE TABLE table_name (&lt;br&gt;
column1 datatype,&lt;br&gt;
column2 datatype,&lt;br&gt;
);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• Save the data in the newly created table.&lt;br&gt;
• Restart MariaDB by using the below command:&lt;br&gt;
&lt;code&gt;mysqld start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;• Drop the table by using the DROP TABLE command as given below:&lt;br&gt;
&lt;code&gt;DROP [TEMPORARY] TABLE [IF EXISTS] [/*COMMENT TO SAVE*/]&lt;br&gt;
table_name [, table_name] ...&lt;br&gt;
[WAIT n|NOWAIT]&lt;br&gt;
[RESTRICT | CASCADE]&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
• Now, recreate the table and restore the dump.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use Professional MariaDB Repair Tool
&lt;/h2&gt;

&lt;p&gt;To quickly recover data from corrupt MariaDB database with complete precision, you can use an advanced MariaDB repair tool, like Stellar Repair for MySQL. This tool can repair MariaDB tables created in both InnoDB and MyISAM engines. It is compatible with Windows and Linux operating systems. &lt;/p&gt;

&lt;h2&gt;
  
  
  Key features of this powerful software are:
&lt;/h2&gt;

&lt;p&gt;• Repairs corrupt MariaDB and MySQL database&lt;br&gt;
• Recovers all the data, including unique keys, foreign keys, tables, etc., from corrupt MariaDB database &lt;br&gt;
• Fixes all types of MariaDB corruption errors&lt;br&gt;
• Intuitive and user-friendly GUI&lt;br&gt;
• Saves repaired files in several formats –MariaDB, MySQL,  SQL Script, CSV, HTML, and XLS&lt;br&gt;
• Supports MariaDB database up to 11.6&lt;/p&gt;

&lt;h2&gt;
  
  
  To Conclude
&lt;/h2&gt;

&lt;p&gt;MariaDB database may get corrupted after improper server or system shutdown and various other reasons. You can follow the methods mentioned in this post to repair and recover the corrupt MariaDB database. However, the easiest method is to use an advanced &lt;a href="https://www.stellarinfo.com/mysql-repair.php" rel="noopener noreferrer"&gt;MySQL database repair tool&lt;/a&gt;, such as Stellar Repair for MySQL. This tool can quickly repair severely corrupt, large-sized MariaDB database with complete integrity and precision. It can recover all the data from the database and save it in a new MariaDB file. It supports database created in both InnoDB and MyISAM storage engines. &lt;/p&gt;

</description>
      <category>repaircorruptmariadb</category>
      <category>stellarrepairformysql</category>
      <category>repairmysqldatabase</category>
    </item>
    <item>
      <title>How to Repair Corrupt Tables in MariaDB Server after Unexpected MariaDB Crash?</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Wed, 27 Nov 2024 03:56:57 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-repair-corrupt-tables-in-mariadb-server-after-unexpected-mariadb-crash-2gih</link>
      <guid>https://dev.to/arun555/how-to-repair-corrupt-tables-in-mariadb-server-after-unexpected-mariadb-crash-2gih</guid>
      <description>&lt;p&gt;The MariaDB Server may unexpectedly crash or stops responding due to various reasons, like hardware failure, bugs in the server code, sudden power failure, etc. After an unexpected server crash, you may face inconsistency issues in the MariaDB database or corruption in tables. &lt;/p&gt;

&lt;p&gt;When the tables are corrupted, you may fail to open or access the tables or encounter errors when trying to open the tables. So, you need to repair the MariaDB tables as soon as possible to prevent any further harm or data loss. In this article, we will discuss the methods to &lt;a href="https://www.stellarinfo.com/article/how-to-repair-corrupt-mariaDB-database.php" rel="noopener noreferrer"&gt;repair the corrupt tables in the MariaDB&lt;/a&gt; Server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Methods to Repair MariaDB Database
&lt;/h2&gt;

&lt;p&gt;When MariaDB tables get corrupted, you can use native MySQL utilities to repair and recover the corrupt database tables. Here’s how:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 1 - Restore the Database from Backup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you have taken backup of the MariaDB database file, then you can use the Mariabackup utility to restore the file from backup. You can use the –copy-back command to restore the database file. This command restores the backup to the data directory. So, before executing the –copy-back command, make sure the data directory (--datadir) is empty. You can confirm this by checking the configuration file on your system, which is usually located in /etc/mysql/my. cnf. Then, follow the below instructions:&lt;/p&gt;

&lt;p&gt;• First, stop the MariaDB Server services by using the below command.&lt;br&gt;
&lt;code&gt;mysql.server stop&lt;/code&gt;&lt;br&gt;
• Next, run the Mariabackup tool with the –copy-back option (see the below example):&lt;br&gt;
&lt;code&gt;$ mariabackup --copy-back \&lt;br&gt;
--target-dir=/var/mariadb/backup/&lt;/code&gt;&lt;br&gt;
• Now, change the ownership of the data directory file. &lt;br&gt;
• After this, run the following command to restart the MariaDB Server services:&lt;br&gt;
&lt;code&gt;mysql.server start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If the backup file (dump file) is not available or updated, then follow the next methods to repair the MariaDB tables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 2 - Dump and Reload the Table Data&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you’re using InnoDB search engine, then you can use the Dump and Reload method to repair the tables in the MariaDB database. The InnoDB engine causes the MariaDB Server to crash if it detects corruption in tables. If the MariaDB Server crashes, then you need to restart the MariaDB by using the –innodb-force-recovery=# option. Once you are able to restart the MariaDB, then follow the below steps:&lt;/p&gt;

&lt;p&gt;• Run the Select command as given below to dump data from the corrupt MariaDB table:&lt;br&gt;
&lt;code&gt;SELECT * FROM customers&lt;/code&gt;&lt;br&gt;
• After this, you can run the SHOW CREATE TABLE command to know the declaration of the corrupt table.&lt;br&gt;
&lt;code&gt;SHOW CREATE TABLE table_name&lt;/code&gt;&lt;br&gt;
• Next, create a table with the same structure as the corrupt table. To do this, execute the CREATE TABLE command as given below:&lt;br&gt;
&lt;code&gt;CREATE TABLE table_name (&lt;br&gt;
column1 datatype,&lt;br&gt;
column2 datatype,&lt;br&gt;
);&lt;/code&gt;&lt;br&gt;
• After this, save the data in the newly created table.&lt;br&gt;
• Now, use the below command to restart MariaDB:&lt;br&gt;
mysqld start&lt;br&gt;
&lt;code&gt;mysqld start&lt;/code&gt;&lt;br&gt;
• Drop the table by executing the &lt;a href="https://mariadb.com/kb/en/drop-table/" rel="noopener noreferrer"&gt;DROP TABLE&lt;/a&gt; command as given below.&lt;br&gt;
&lt;code&gt;DROP [TEMPORARY] TABLE [IF EXISTS] [/*COMMENT TO SAVE*/]&lt;br&gt;
table_name [, table_name] ...&lt;br&gt;
[WAIT n|NOWAIT]&lt;br&gt;
[RESTRICT | CASCADE]&lt;/code&gt;&lt;br&gt;
• Now, recreate the table and restore the dump.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 3 - Use REPAIR TABLE Command&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can also use the REPAIR TABLE command to repair the corrupted tables in MariaDB database. But, before using this command, ensure that you have all the permissions and privileges on the tables, like SELECT and INSERT privileges. To check this, you can run the SHOW GRANTS command as given below:&lt;br&gt;
&lt;code&gt;SHOW GRANTS [FOR user|role]&lt;/code&gt;&lt;br&gt;
Now, run the REPAIR TABLE command as given below:&lt;br&gt;
&lt;code&gt;REPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE&lt;br&gt;
    tbl_name [, tbl_name] ...&lt;br&gt;
    [QUICK] [EXTENDED] [USE_FRM]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If you want to repair partitioned tables using the REPAIR TABLE command, then you need to use the &lt;a href="https://mariadb.com/kb/en/alter-table/" rel="noopener noreferrer"&gt;ALTER statement&lt;/a&gt; in it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 4 - Use myisamchk Command&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can use the myisamchk command to repair MariaDB tables. It can help you recover all data from the tables, except unique keys. Here’s how to use this command:&lt;br&gt;
• First, use the below command to stop the server.&lt;br&gt;
&lt;code&gt;mysqld stop&lt;/code&gt;&lt;br&gt;
• Then, recover the tables by executing the below command:&lt;br&gt;
myisamchk –recover TABLE&lt;br&gt;
&lt;code&gt;myisamchk –recover TABLE&lt;/code&gt;&lt;br&gt;
• After this, restart the server:&lt;br&gt;
&lt;code&gt;mysqld start&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  An Alternative Solution - Use a Professional MariaDB Repair Tool
&lt;/h2&gt;

&lt;p&gt;If you want to repair the MariaDB database quickly and without any data loss, then you can use an advanced MariaDB repair tool. Stellar Repair for MySQL is one such tool that can repair database created in both InnoDB and MyISAM storage engines. It can recover partitioned tables, indexes, unique keys, foreign keys, and other objects from corrupted MariaDB database with complete precision. &lt;/p&gt;

&lt;h2&gt;
  
  
  Some key features of Stellar Repair for MySQL:
&lt;/h2&gt;

&lt;p&gt;• Repairs MySQL and MariaDB databases created using InnoDB and MyISAM storage engines&lt;br&gt;
• Batch repairs multiple MariaDB databases in a single process&lt;br&gt;
• Recovers all the database objects, including primary keys, foreign keys, tables, table properties, data types, views, and triggers&lt;br&gt;
• Previews recoverable database objects before saving&lt;br&gt;
• Supports repairing of partition tables&lt;br&gt;
• Supports all MariaDB versions up to 11.3.2&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The unexpected MariaDB crash can lead to MariaDB table corruption. In this article, we have discussed the methods to repair and restore corrupt tables after MariaDB Server crash. You can restore the database from backup. If the backup is not up-to-date, you can use the REPAIR TABLE and myisamchk commands to repair the tables. To save time and effort, you can use a professional MariaDB repair tool, like &lt;a href="https://www.stellarinfo.com/mysql-repair.php" rel="noopener noreferrer"&gt;Stellar Repair for MySQL&lt;/a&gt;, to repair the damaged or corrupt MariaDB tables with complete integrity.&lt;/p&gt;

</description>
      <category>repairmariadbdatabase</category>
      <category>stellarrepairformysql</category>
      <category>repaircorrupttables</category>
    </item>
    <item>
      <title>How to Repair Excel File Errors without Losing Data?</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Tue, 01 Oct 2024 09:49:22 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-repair-excel-file-errors-without-losing-data-1lcn</link>
      <guid>https://dev.to/arun555/how-to-repair-excel-file-errors-without-losing-data-1lcn</guid>
      <description>&lt;p&gt;MS Excel is not free from issues and errors. Users sometimes face random error messages while trying to open the application or an Excel file, saving or editing an Excel file, etc. There are some errors that can even prevent the users from accessing the application or the Excel file, leading to a data loss situation. In this article, we will discuss some common Excel file errors and also provide solutions to resolve these errors without any data loss.&lt;/p&gt;

&lt;h2&gt;
  
  
  Some Common Excel File Errors
&lt;/h2&gt;

&lt;p&gt;Here are some errors that you may experience while opening, editing, or saving Excel files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Excel is not responding&lt;/li&gt;
&lt;li&gt;Unspecified error message&lt;/li&gt;
&lt;li&gt;Microsoft Excel cannot access the file&lt;/li&gt;
&lt;li&gt;We’re sorry, but Excel has run into an error that is preventing it from working correctly&lt;/li&gt;
&lt;li&gt;We found a problem with some content&lt;/li&gt;
&lt;li&gt;File Error: Data may have been lost&lt;/li&gt;
&lt;li&gt;Excel found unreadable content in . Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.&lt;/li&gt;
&lt;li&gt;MS Excel is already running&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The above error messages can occur due to different reasons, such as outdated MS Excel version, bugs in the application, faulty add-ins, damaged program files, and corruption in the Excel file. Let’s see how to resolve these common Excel File errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Methods to Resolve Excel File Errors
&lt;/h2&gt;

&lt;p&gt;Here are some methods you can try to resolve the common errors in Excel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 1: Disable Faulty Add-ins in MS Excel&lt;/strong&gt;&lt;br&gt;
Sometimes, conflicting or faulty add-ins can prevent you from performing several operations in Excel, leading to the errors. You can launch Excel in Safe Mode (&lt;strong&gt;press Windows + R, type excel /safe in Run dialog box, and press Enter&lt;/strong&gt;) to check if the error is caused by any problematic add-ins. When you launch Excel in safe mode, it only uses necessary resources required for its operation and open without any third-party add-ins. &lt;br&gt;
If you are able to launch MS Excel in safe mode without any issue, then it indicates the error was caused by conflicting/faulty COM add-ins. You can disable all the COM add-ins by following these steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In Excel safe mode, click on &lt;strong&gt;File&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click on **Options **in the left pane.&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Add-ins&lt;/strong&gt; in the &lt;strong&gt;Excel Options&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Expand the &lt;strong&gt;dropdown&lt;/strong&gt; menu against &lt;strong&gt;Manage&lt;/strong&gt; and click on &lt;strong&gt;COM Add-ins&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Go&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;COM Add-ins&lt;/strong&gt; window, uncheck all the selected add-ins and click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This will disable all the add-ins. Now, relaunch Excel normally and enable the add-ins one-by-one. This will help you to find out the problematic add-in/s. When found, you can permanently disable that add-in.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Method 2: Check if Excel.exe is in Use by Another Process&lt;/strong&gt;&lt;br&gt;
Sometimes, when you try to launch MS Excel or open a workbook, you may encounter the MS Excel is already running error message. This could happen if the Excel.exe is in use in the background or is being used by another process. You can find and close the Excel.exe process to resolve the issue. Here are the steps to do so:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Press &lt;strong&gt;CTRL + SHIFT + ESC&lt;/strong&gt; to launch &lt;strong&gt;Task Manager&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click on the &lt;strong&gt;Processes&lt;/strong&gt; tab.&lt;/li&gt;
&lt;li&gt;Look for &lt;strong&gt;Excel.exe&lt;/strong&gt; or &lt;strong&gt;Microsoft Excel&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Right-click&lt;/strong&gt; on the process and click on &lt;strong&gt;End Task&lt;/strong&gt;.
Now, open Excel to see if the issue is resolved.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Method 3: Update MS Excel Application&lt;/strong&gt;&lt;br&gt;
Outdated MS Excel application may develop some bugs or glitches that can cause various issues and errors. So, it is important to keep your Excel application updated. Here are the steps to check and update MS Excel: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click on &lt;strong&gt;File&lt;/strong&gt; in the Menu bar.&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Account&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;Update Options&lt;/strong&gt; and then click on &lt;strong&gt;Update Now&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Method 4: Repair Microsoft Office&lt;/strong&gt;&lt;br&gt;
Damaged or corrupt program files can also create issues when working with Excel, causing random errors. As Excel is a part of MS Office suite, you can repair the Microsoft Office program. Follow the steps below to repair Microsoft Office:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Press Windows + I to open Settings. Click on Apps.&lt;/li&gt;
&lt;li&gt;Click on Apps &amp;amp; Features and scroll down to locate Microsoft Office. &lt;/li&gt;
&lt;li&gt;Select Microsoft Office and click on Modify.&lt;/li&gt;
&lt;li&gt;When prompted, click Yes.&lt;/li&gt;
&lt;li&gt;Select the Repair option and click on Continue.&lt;/li&gt;
&lt;li&gt;Wait for the repair process to complete.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Method 5: Repair Excel File&lt;/strong&gt;&lt;br&gt;
One of the major reasons for errors in Excel file is corruption. If your Excel file is corrupted, you can use the Open and Repair utility in MS Excel to fix the corruption issues. Follow the steps mentioned below to repair corrupted Excel file using this utility:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Launch MS Excel (if it is opening).&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;File&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Open &amp;gt; Browse&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqdxktzcikzy2y6psd99u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqdxktzcikzy2y6psd99u.png" alt="Repair Excel file - Open Window" width="456" height="553"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the problematic Excel file.&lt;/li&gt;
&lt;li&gt;Click on the &lt;strong&gt;arrow&lt;/strong&gt; next to the **Open **button.&lt;/li&gt;
&lt;li&gt;Click on &lt;strong&gt;Open and Repair&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5vf046dxnhseym0ped24.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5vf046dxnhseym0ped24.png" alt="Repair Excel file - Download Window" width="624" height="567"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On the dialog box that appears, select the &lt;strong&gt;Repair&lt;/strong&gt; option.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq40sf93ihgxvabllbic0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq40sf93ihgxvabllbic0.png" alt="Repair Excel file - Repair Window" width="624" height="115"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Once the file is repaired, click &lt;strong&gt;Close&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flzowso9zyby60xax6hjg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flzowso9zyby60xax6hjg.png" alt="Repair Excel file - Repaired Window" width="543" height="251"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the above utility fails to repair the corrupt Excel file, then you can use &lt;strong&gt;Stellar Repair for Excel&lt;/strong&gt; – a powerful Excel repair tool for repairing severely corrupted or damaged Excel files (.xls, .xlsx, .xltm, .xltx, and .xlsm). It recovers all the data from the corrupted Excel file and saves it in a new file. It is a simple-to-use tool that doesn’t require any technical expertise to operate. It can also repair multiple Excel files in a batch with complete precision and integrity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You may encounter several errors while working with Excel. There are different reasons and factors that can lead to Excel file errors. Corruption in Excel file is one of the major reasons for some common errors. If the Excel file is corrupted, the best and quick way to repair the corrupt Excel file is by using a professional Excel repair tool, like &lt;a href="https://www.stellarinfo.com/repair-excel-file.php" rel="noopener noreferrer"&gt;Stellar Repair for Excel&lt;/a&gt;. This tool can repair corrupt Excel files and recover all data in just a few simple steps.&lt;/p&gt;

</description>
      <category>microsoft</category>
      <category>microsoftexcel</category>
      <category>repair</category>
      <category>spreadsheet</category>
    </item>
    <item>
      <title>How to Recover InnoDB MySQL Table Data from ibdata and frm Files?</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Thu, 12 Sep 2024 11:09:07 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-recover-innodb-mysql-table-data-from-ibdata-and-frm-files-35jc</link>
      <guid>https://dev.to/arun555/how-to-recover-innodb-mysql-table-data-from-ibdata-and-frm-files-35jc</guid>
      <description>&lt;p&gt;MySQL Server uses two types of database storage engines – InnoDB and MyISAM. When InnoDB storage engine is used, MySQL Server stores the data and indexes in .ibdata file, and table schema in .frm file. In case of corruption in InnoDB tables, you can easily &lt;a href="https://www.stellarinfo.com/article/restore-data-from-frm-ibd-files.php" rel="noopener noreferrer"&gt;recover the InnoDB MySQL tables’ data from .ibdata and .frm files&lt;/a&gt;, instead of restoring the complete database backup. In this article, we will discuss how to recover data from .ibdata and .frm files in MySQL Server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stepwise Process to Recover InnoDB Tables from ibdata and frm Files
&lt;/h2&gt;

&lt;p&gt;Here’s the step-by-step process to recover InnoDB tables’ data from .frm and .ibdata files in MySQL Server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You need to first create a new MySQL database. For this, login into the PhpMyAdmin, click on the Databases option, type a database name (e.g. Clients), and then click Create.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, go to the folder of your XAMPP installation to check the newly created database. The default location is C:\xampp\mysql\data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you open the new database, you will find that it does not contain any tables. To create the table, you need the schema of table. If you have an updated backup file, then you can get the schema and name of the database. You can use the same name to create the table. But if you don’t have backup, then you can use the .frm file to extract the schema of the table. There are various reliable utilities available online that can help you to extract table schema.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now use the same schema to create table in the newly created database.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Once you create the table, it will automatically create new .frm and .ibd files in the database folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, go to your XAMPP installation folder and delete the .ibd file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Then, copy the original .ibd file and paste it into the new database.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Before copying the original .ibd file, execute the below query:&lt;br&gt;
&lt;code&gt;ALTER TABLE table_name DISCARD TABLESPACE;&lt;/code&gt;&lt;br&gt;
Note: The DISCARD TABLESPACE command will break the link between the MySQL table and the tablespace, thus helps prevent inconsistencies and other issues. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, restore the link between MySQL table and Tablespace by using the below command:&lt;br&gt;
&lt;code&gt;ALTER TABLE table_name IMPORT TABLESPACE;&lt;/code&gt;&lt;br&gt;
Note: You can restore data from a single table at a time by using .frm and .ibd files. If you need to restore multiple tables, then it will take a lot of time as you need to perform all the steps for each table manually. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Alternate Solution to Recover InnoDB MySQL Table
&lt;/h2&gt;

&lt;p&gt;To restore multiple InnoDB tables at once from MySQL Server database quickly and easily, you can use a professional MySQL database recovery tool. Stellar Repair for MySQL is one such easy-to-use tool that can recover InnoDB tables and other data, such as primary keys, views, triggers, etc. from corrupted or damaged MySQL databases. The tool features a rich and interactive user interface that helps you to perform the repair and recovery operation quickly in just a few simple steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Features of Stellar Repair for MySQL
&lt;/h2&gt;

&lt;p&gt;Here are some key capabilities of Stellar Repair for MySQL:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Supports MySQL Server 8.0.36 and lower versions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Supports all MariaDB versions up to 11.3.2&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Restores all data from MySQL databases, including deleted records and partition tables&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Repairs MySQL tables with complete precision&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Provides an enhanced preview of repaired data before saving&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows repairing of multiple databases at once&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Allows you to save repaired MySQL database in multiple formats, like MySQL, MariaDB, SQL Script, CSV, HTML, and XLS&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compatible with both Windows and Linux operating systems, including CentOS 7 (64-bit) / Red Hat Enterprise Linux 7 (64-bit) and Ubuntu 16.04 (32-bit &amp;amp; 64-bit) / Ubuntu 18.04 &amp;amp; 19.10 (64-bit)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Above, we have explained the detailed step-by-step process to recover InnoDB MySQL table data from ibdata and .frm files. However, this is not suitable for restoring multiple tables as you need to perform all the steps manually for every table. Alternatively, you can use a professional MySQL database recovery tool, such as &lt;a href="https://www.stellarinfo.com/mysql-repair.php" rel="noopener noreferrer"&gt;Stellar Repair for MySQL&lt;/a&gt; that can help you extract all the objects, including tables, primary keys, views, triggers, etc. from corrupted database files with complete integrity. The tool supports repairing of databases created using both InnoDB and MyISAM storage engines. It is designed to address a wide range of corruption-related errors in MySQL database.  A free demo version of Stellar Repair for MySQL is also available that allows to scan the database file and preview the recoverable data.&lt;/p&gt;

</description>
      <category>mysql</category>
      <category>innodb</category>
      <category>recoverinnodb</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How to Restore SQL Server Database from Backup?</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Tue, 13 Aug 2024 10:28:19 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-restore-sql-server-database-from-backup-4o5</link>
      <guid>https://dev.to/arun555/how-to-restore-sql-server-database-from-backup-4o5</guid>
      <description>&lt;p&gt;Database backups in SQL Server are important as they help restore data in case of database corruption, virus attack, server issue, or any disaster. For example, if a virus damages the database, you can use the last created backup to restore the database. In this article, we will see how to &lt;a href="https://www.stellarinfo.com/article/restore-sql-server-database-from-bak-file.php" rel="noopener noreferrer"&gt;restore SQL Server database from backup&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Restore SQL Database from Full Backup using SSMS
&lt;/h2&gt;

&lt;p&gt;A full backup contains the entire database. Follow the below steps to restore the database from full backup in SQL Server using SQL Server Management Studio (SSMS).&lt;/p&gt;

&lt;p&gt;• In the SQL Server Management Studio (SSMS), go to the Object Explorer, select the Databases node, right-click on it, and select the Restore Database option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ndlyza1nkfucbhifsul.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ndlyza1nkfucbhifsul.png" alt="Image description" width="616" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Select the Device option on the General page and then press the Browse button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvf2ie6b7tj19vg4icgrx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvf2ie6b7tj19vg4icgrx.png" alt="Image description" width="800" height="723"&gt;&lt;/a&gt;&lt;br&gt;
• In Select backup devices, press the Add button. &lt;br&gt;
• Select your backup file and press OK.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fywwddy5niint8pzlgojv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fywwddy5niint8pzlgojv.png" alt="Image description" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• If you need to relocate the files, go to the Files page and select the Relocate all files to folder option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fepx1cek651zxbeiku7qg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fepx1cek651zxbeiku7qg.png" alt="Image description" width="800" height="511"&gt;&lt;/a&gt;&lt;br&gt;
• On the Options page, select Overwrite the existing database (if you want to replace the previous one).&lt;br&gt;
• If your database is under replication, you may need to select the Preserve the replication setting. &lt;br&gt;
• You can also select the restrict access to the restored database option. This option is useful if you don’t want anyone to access the database while you are still working on the restoration.&lt;br&gt;
• The Tail-Log will back up the tail log and try to restore it. &lt;br&gt;
• Optionally, you can select Close existing connection to destination database. Then, click OK.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbria24x1ns8forq9x8ol.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbria24x1ns8forq9x8ol.png" alt="Image description" width="800" height="511"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Restore SQL Server Database from Backup using T-SQL
&lt;/h2&gt;

&lt;p&gt;Alternatively, you can use the T-SQL script to restore the database from backup. Run the following T-SQL code to restore the database backup: &lt;/p&gt;

&lt;p&gt;&lt;code&gt;USE [master]&lt;br&gt;
BACKUP LOG [stellardb] TO  DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup\stellardb_LogBackup_2024-03-05_09-38-48.bak' WITH NOFORMAT, NOINIT,  NAME = N'stellardb_LogBackup_2024-03-05_09-38-48', NOSKIP, NOREWIND, NOUNLOAD,  NORECOVERY ,  STATS = 5&lt;br&gt;
RESTORE DATABASE [stellardb] FROM  DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup\stellardb.bak' WITH  FILE = 1,  NOUNLOAD,  STATS = 5&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
GO&lt;/p&gt;

&lt;p&gt;The above code will back up the tail log and then restore the database from the backup file.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do if the backup is damaged or corrupted?
&lt;/h2&gt;

&lt;p&gt;Sometimes, you fail to restore the database. So, it is recommended to check your backup and test it before restoring it. The following command can help you to verify if your backup works:&lt;br&gt;
&lt;code&gt;RESTORE DATABASE StellarDB&lt;br&gt;
FROM DISK = N'C:\Backups\stellardb.bak'&lt;br&gt;
WITH VERIFYONLY;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
If it is damaged, there is a way to recover your backup. The best option is to repair your corrupt backup file with a third-party software, such as Stellar Repair for MS SQL. There are 3 editions of this software. The Technician and the Toolkit editions include the option to repair backup database. &lt;br&gt;
The first thing you need to do is install the Stellar Repair for MS SQL Technician software.&lt;br&gt;
Secondly, select the Extract from MS SQL Backup option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgvgd4m8bl5wk3wsqfbo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqgvgd4m8bl5wk3wsqfbo.png" alt="Image description" width="800" height="502"&gt;&lt;/a&gt;&lt;br&gt;
Thirdly, select the backup file. You have two options to select the backup file:&lt;br&gt;
• If you know your backup file location, use the browse option and select your .bak file.&lt;br&gt;
• If you do not know your backup file location, you can use the Find button to search for the backup file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmiooupgo28d54zywfi8e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmiooupgo28d54zywfi8e.png" alt="Image description" width="800" height="525"&gt;&lt;/a&gt;&lt;br&gt;
Once the backup is selected, press the scan button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2exdeku7viz3111g2wb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2exdeku7viz3111g2wb.png" alt="Image description" width="800" height="525"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;There are two options for scanning:&lt;/strong&gt;&lt;br&gt;
• The Standard Scan, which is the default option and the recommended one. It is the faster option to scan the file. &lt;br&gt;
• The Advanced Scan, which is a slower option but it can be used in case the Standard Scan fails to recover the data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F898fi69eogr2w6i01qmv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F898fi69eogr2w6i01qmv.png" alt="Image description" width="792" height="324"&gt;&lt;/a&gt;&lt;br&gt;
Select the backup set to repair and press Next.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feasr5bo0d6o5pj577jp5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feasr5bo0d6o5pj577jp5.png" alt="Image description" width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After repair, it will display all your database objects. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fthaidyqpkdatvi9b8ixe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fthaidyqpkdatvi9b8ixe.png" alt="Image description" width="800" height="600"&gt;&lt;/a&gt;&lt;br&gt;
Select the database objects you want to recover and press the Save icon.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbq2pj8eal7s8ojhkpfg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbq2pj8eal7s8ojhkpfg.png" alt="Image description" width="301" height="219"&gt;&lt;/a&gt;&lt;br&gt;
You can save the data in New database and have a new database with the data restores. In addition, you can restore the data in a current Live Database or export the data to Other Formats, like Excel, CSV, and HTML.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8104lwui75q84lu9g7pr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8104lwui75q84lu9g7pr.png" alt="Image description" width="800" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;If the database gets corrupted, you can always recover the database using the most current backup. You can follow the above-mentioned ways to restore the SQL Server database from backup. However, make sure that your backup is not corrupt. To check this, you can use the verifyonly option. If the backup is corrupt, you can use &lt;a href="https://www.stellarinfo.com/sql-recovery.php" rel="noopener noreferrer"&gt;Stellar Repair for MS SQL - Technician&lt;/a&gt; to recover your data from the backup file with complete integrity. &lt;/p&gt;

</description>
      <category>restoresqldatabase</category>
    </item>
    <item>
      <title>How to Repair MariaDB Database?</title>
      <dc:creator>Arun Kumar</dc:creator>
      <pubDate>Wed, 31 Jul 2024 03:49:55 +0000</pubDate>
      <link>https://dev.to/arun555/how-to-repair-mariadb-database-e3b</link>
      <guid>https://dev.to/arun555/how-to-repair-mariadb-database-e3b</guid>
      <description>&lt;p&gt;MariaDB, similar to MySQL, is an open source database that is used to store and organize data. MariaDB database, just like other databases, is also susceptible to corruption. The database can get corrupted due to several reasons, like system issues, sudden crashing of application or system hosting database, virus or malware attacks, hardware problems, etc. In this article, we will mention some effective methods to &lt;a href="https://www.stellarinfo.com/article/how-to-repair-corrupt-mariaDB-database.php" rel="noopener noreferrer"&gt;repair the MariaDB database&lt;/a&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How to Check if the MariaDB Database is Corrupted?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Before proceeding, first check if the MariaDB database is corrupted. For this, you can use the CHECK TABLE command. This command checks the MariaDB tables for any errors and issues. This command supports tables created in Archive, Aria, CSV, InnoDB, and MyISAM storage engines. Here’s the syntax of the CHECK TABLE command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;CHECK TABLE tbl_name [, tbl_name] ... [option] ...&lt;br&gt;
option = {FOR UPGRADE | QUICK | FAST | MEDIUM | EXTENDED | CHANGED}&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
The options, used in the above CHECK TABLE command, may vary according to the storage engines. Let’s take a look at them:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FOR UPGRADE:&lt;/strong&gt; This option is used to check the database after upgrading the MariaDB's version. It checks incompatible table formats. &lt;br&gt;
&lt;strong&gt;FAST:&lt;/strong&gt; This option only checks the tables that were not closed properly or marked as corrupt. It only supports Aria and MyISAM engines.&lt;br&gt;
&lt;strong&gt;QUICK:&lt;/strong&gt; This option supports MyISAM and Aria storage engines. It does not check the delete link chain, thus, performs the checks quickly.&lt;br&gt;
&lt;strong&gt;EXTENDED:&lt;/strong&gt; This option performs a complete check on tables. It checks each row and its keys, and also index keys and its primary clustered keys. This option supports InnoDB engine on MariaDB 10.6.11 and later versions. &lt;br&gt;
&lt;strong&gt;CHANGED:&lt;/strong&gt; This option checks tables, which were modified since the last CHECK/REPAIR in MyISAM and Aria engines.&lt;br&gt;
&lt;strong&gt;MEDIUM:&lt;/strong&gt; This option is used to check and find errors in MariaDB tables. It scans the data files and checks integrity between the data and the ‘index files’ with checksum. &lt;br&gt;
If the CHECK TABLE command finds any issue in the tables, it will directly report the error with description. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Methods to Repair MariaDB Database&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If the MariaDB database is corrupted, then you can try to restore the database from backup. If you have been using mariadb-dump client to take backups of your data regularly, you can use the dump files to &lt;a href="https://mariadb.com/kb/en/restoring-data-from-dump-files/" rel="noopener noreferrer"&gt;restore the data&lt;/a&gt;. If the backup file (dump file) is not available or updated, then follow the below methods to repair the MariaDB database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Use REPAIR TABLE Command&lt;/strong&gt;&lt;br&gt;
You can use the REPAIR TABLE command to repair the tables in MariaDB database. You can directly run the REPAIR TABLE command on tables created in Archive, Aria, CSV, and MyISAM Tables. &lt;br&gt;
Here is the syntax:&lt;br&gt;
&lt;code&gt;REPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE&lt;br&gt;
    tbl_name [, tbl_name] ...&lt;br&gt;
    [QUICK] [EXTENDED] [USE_FRM]&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Note:&lt;/strong&gt; Before using the above command, make sure you have the SELECT and INSERT privileges on the table. To repair the partition tables, you need to add the ALTER option to the REPAIR TABLE command.&lt;br&gt;
If you’re using InnoDB engine, then the engine will cause the MariaDB to crash if it detects corruption in table. To repair the InnoDB table, you need to first restart the MariaDB by using the --innodb-force-recovery=# option. Then, to recover the existing data,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dump the data from corrupted table. &lt;/li&gt;
&lt;li&gt;Save the table structure with the &lt;a href="https://mariadb.com/kb/en/show-create-table/" rel="noopener noreferrer"&gt;SHOW CREATE TABLE&lt;/a&gt; command. Restart MariaDB.&lt;/li&gt;
&lt;li&gt;Next, drop the table with the &lt;a href="https://mariadb.com/kb/en/drop-table/" rel="noopener noreferrer"&gt;DROP TABLE&lt;/a&gt; command.&lt;/li&gt;
&lt;li&gt;Now, rebuild the table and restore the dump.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Use a Professional MariaDB Database Repair Tool&lt;/strong&gt;&lt;br&gt;
If the REPAIR TABLE command fails to fix the corrupted MariaDB database, then you can take the help of a professional MariaDB database repair tool to repair the database. Stellar Repair for MySQL is one such tool that can quickly repair the MariaDB database without any data loss. It can repair tables created in MyISAM and InnoDB storage engines. It also supports repairing of partition tables in the database. It can restore all the database objects, including tables, triggers, and indexes with complete precision.  &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Some Key features of Stellar Repair for MySQL:&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Repairs InnoDB and MyISAM tables of the MariaDB database&lt;/li&gt;
&lt;li&gt;Restores all the data from damaged MariaDB database with complete integrity&lt;/li&gt;
&lt;li&gt;Supports repairing MariaDB database on both Windows and Linux&lt;/li&gt;
&lt;li&gt;Supports MariaDB server up to 11.3.2&lt;/li&gt;
&lt;li&gt;Allows to save the repaired file in multiple formats, like MariaDB, MySQL, CSV, etc.&lt;/li&gt;
&lt;li&gt;Helps to resolve complex corruption-related errors. &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Conclusion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If you’re having trouble opening MariaDB database tables or accessing the records, you can use the CHECK TABLE command to check corruption in MariaDB tables. If corruption is detected, then use the REPAIR TABLE command to repair the tables. If this didn't work, you can use a MariaDB database repair tool, like &lt;a href="https://www.stellarinfo.com/mysql-repair.php" rel="noopener noreferrer"&gt;Stellar Repair for MySQL&lt;/a&gt; to repair the corrupt MariaDB database. This tool can restore all the data from the corrupt MariaDB database with 100% integrity. It can repair both InnoDB and MyISAM tables.&lt;/p&gt;

</description>
      <category>repairmariadbdatabase</category>
      <category>stellarrepairformysql</category>
    </item>
  </channel>
</rss>
