<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Server lost, can't recover]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5887</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5887&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Server lost, can't recover.]]></description>
		<lastBuildDate>Sat, 15 Aug 2015 07:44:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24064#p24064</link>
			<description><![CDATA[<div class="codebox"><pre><code> $brain_smashed = $apmuthu_knowledge;  </code></pre></div><p>Thank you apmuthu :-)</p><p>I successfully recover .... yuhahahahahah</p><p>With the help of your last pdf attachment and some Googling upon full text guide, finally issue solved!</p><p>http://www.thegeekstuff.com/2014/04/recover-innodb-mysql</p><p>----------------------------------------------------------------------------------------</p><p>How to Recover InnoDB MySQL Table Data from ibdata and .frm Files</p><p>This tutorial explains how to restore MySQL tables when all or some of the tables are lost, or when MySQL fails to load table data.</p><p>One of the reason for this to happen is when the table data is corrupted.</p><p>In this particular scenario, when you connect to the MySQL database server, you cannot see one more tables, as they are missing.</p><p>Under this scenario, the MySQL log file contained the following messages:</p><p>InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytes<br />InnoDB: than specified in the .cnf file 0 5242880 bytes!<br />[ERROR] Plugin &#039;InnoDB&#039; init function returned error.<br />[ERROR] Plugin &#039;InnoDB&#039; registration as a STORAGE ENGINE failed.<br />[ERROR] Unknown/unsupported storage engine: InnoDB<br />[ERROR] Aborting<br />The method explained below will work only for InnoDB database.</p><p>Note: Before you do anything, take a backup of all the MySQL files and database in the current condition, and keep it somewhere safe.</p><p>To restore the table data you have make sure that data directory and its contents are intact. In my case it was fine.</p><p>drwx------ 2 mysql mysql&nbsp; &nbsp; &nbsp;4096 Oct 11&nbsp; 2012 performance_schema<br />drwx------ 2 mysql mysql&nbsp; &nbsp; &nbsp;4096 Dec 10&nbsp; 2012 ndbinfo<br />drwx--x--x 2 mysql mysql&nbsp; &nbsp; &nbsp;4096 Dec 10&nbsp; 2012 mysql<br />-rw-rw---- 1 mysql mysql&nbsp; &nbsp; &nbsp; &nbsp;56 Dec 19&nbsp; 2012 auto.cnf<br />drwx------ 2 mysql mysql&nbsp; &nbsp; &nbsp;4096 Jul 30&nbsp; 2013 bugs<br />-rw-r----- 1 mysql mysql 50331648 Mar 18 10:35 ib_logfile0<br />-rw-r----- 1 mysql mysql 50331648 Apr 22&nbsp; 2013 ib_logfile1<br />-rw-r----- 1 mysql mysql 35651584 Mar 18 10:35 ibdata1<br />..<br />Ibdata1 – This file is the InnoDB system table space, which contains multiple InnoDB tables and associated indexes.<br />*.frm – Holds metadata information for all MySQL tables. These files are located inside the folder of the corresponding MySQL database. (for example, inside “bugs” directory)<br />ib_logfile* – All data changes are written into these log files. This is similar to the archive logs concepts that we find in other RDBMS databases.<br />Copy the Files</p><p>To restore the data from the above files, first stop the MySQL server.<br /># service mysqld stop<br />Copy the ibdata files, and the database schema folder to some other directory. We will use this to restore our Mysql database. In this case, we’ll copy it to the /tmp directory. The name of the database scheme in this example is bugs.</p><p>cp –r ibdata* ib_logfile* /tmp</p><p>cp –r schema_name/&nbsp; /tmp/schema_name/<br />Start the MySQL server:</p><p># service mysqld start<br />On a related note, for a typical MySQL database backup and restore, you should use the mysqldump command.</p><p>Restore the Data</p><p>Next, restore the table data as explained below.</p><p>In the my.cnf configuration file, set the value of the following parameter to the current size of the ib_logfile0 file. In the following example, I’ve set it to 48M, as that is the size I see for the ib_logfile0 file when I did “ls -lh ib_logfile0″</p><p>innodb_log_file_size=48M<br />Please note that both the ib_logfile0 and ib_logfile1 file size will be the same.</p><p>Copy the previous ibdata files to respective position, inside mysql data directory.</p><p>cp –r /tmp/ibdata* /var/lib/mysql/<br />Create an empty folder inside data directory with the same name as the database schema name that you are trying to restore, and copy the previous .frm files inside this folder as shown below:</p><p>cp –r /tmp/ib_logfile* /var/lib/mysql/<br />cp –r /tmp/schema_name/*.frm /var/lib/mysql/schema_name/<br />Finally, restart the MySQL server.</p><p>service mysqld restart<br />Now you have MySQL server running with the restored tables. Don’t forget to grant appropriate privileges for the clients to connect to the MySQL database.</p>]]></description>
			<author><![CDATA[null@example.com (asgare)]]></author>
			<pubDate>Sat, 15 Aug 2015 07:44:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24064#p24064</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24061#p24061</link>
			<description><![CDATA[<div class="codebox"><pre><code>If ($brain_smashed) 
    echo &quot;Seek professional assistance.&quot;;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 14 Aug 2015 10:05:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24061#p24061</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24056#p24056</link>
			<description><![CDATA[<p>BTW, many time I tried these commands to repair tables but didn&#039;t worked!<br />mysqlcheck -u root -p --auto-repair --check --optimize --all-databases<br />mysqlcheck -u root -p --check --all-databases<br />mysqlcheck -u root -p --optimize --all-databases</p><p>Also your last message which attached with the title of &quot;Recovering an InnoDB table from only an .ibd file&quot; was more out of my knowledge :-) my brain smashed </p><p>I believe there should be a way, because I saved those needed files but I can&#039;t put together them</p>]]></description>
			<author><![CDATA[null@example.com (asgare)]]></author>
			<pubDate>Thu, 13 Aug 2015 16:31:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24056#p24056</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24055#p24055</link>
			<description><![CDATA[<p>I don&#039;t know how really should I appreciate your kind helps</p><p>I read all of references last night. Also I found&nbsp; those (ibdata1, ib_logfile0, ib_logfile1) files from lost server, attached via below link.<br /><a href="http://www.eai.co.ir/Backup/ib_files.zip">Download Link from my web server</a></p><p>According your kind recommendation &amp; references:<br />1. I made a virtual machine with Debian 7 and all needed staff, such as phpmyadmin, mysql and ...<br />2. Create an empty DB with that name<br />3. Stop MySQL engine<br />4. Copy those mentioned files in place<br />5. Gave desire mysql group permission to files and DB files<br />6. Start MySQL</p><p>While starting mysql, it reported can&#039;t repair some DB in my made DB.<br />The only thing that I can&#039;t control mysql version compatibility with my lost server.</p><p>Sorry for taking your valuable time too much, can you put some effort for the attached files!</p>]]></description>
			<author><![CDATA[null@example.com (asgare)]]></author>
			<pubDate>Thu, 13 Aug 2015 14:56:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24055#p24055</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24046#p24046</link>
			<description><![CDATA[<p>Attached is an InnoDB recovery manual PDFed and attached here.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 12 Aug 2015 14:50:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24046#p24046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24041#p24041</link>
			<description><![CDATA[<p>In FA 2.3 some tables are MyISAM and others are InnoDB. <br />In FA 2.4 all tables are InnoDB.</p><p>Since you were using a debian server - which version od debian and which version of MySQL were you using?</p><p>I just created a FA db with utf8 and persian collation in XAMPP v1.7.3 and then turned off the MySQL server.</p><p>I then replaced all files in the MySQL data folder&#039;s FA db folder with the ones extracted from your zip file and then start the MySQL server.</p><p>You can then use phpMyAdmin to do some diagnostic checks and repair if needed and identify the corrupt tables and replace them with ones from the standard sql/en_US-new.sql file after altering the collations.</p><p>All InnoDB table data files have only the .frm extension and none other. In some instances there will be some .ibd files as well.</p><p>Here are some references:</p><p>Ref 1 : http://www.fromdual.com/recover-lost-frm-files-for-innodb-tables</p><p>Ref 2:http://dba.stackexchange.com/questions/16875/mysql-how-to-restore-table-stored-in-a-frm-and-a-ibd-file<br /></p><div class="quotebox"><blockquote><p>InnoDB tables cannot be copied the same way that MyISAM tables can.</p><p>Just copying the .frm and .ibd files from one location to another is asking for trouble. Copying the .frm and .ibd file of an InnoDB table is only good if and only if you can guarantee that the tablespace id of the .ibd file matches exactly with the tablespace id entry in the metdata of the ibdata1 file.</p></blockquote></div><p>Ref 3: http://www.hexblot.com/blog/recovering-innodb-tables-ibd-and-frm-files</p><p>Ref 4: http://www.thegeekstuff.com/2014/04/recover-innodb-mysql/</p><p>Ref 5: http://egil.biz/how-to-recover-mysql-data-from-innodb/</p><p>Ref 6: http://www.bluegecko.net/mysql/recovering-a-schema-from-innodb-frm-files/</p><br /><br /><br /><p>Do you still have the filesystem of the Debian server?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 12 Aug 2015 12:27:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24041#p24041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24038#p24038</link>
			<description><![CDATA[<p>Hi dear apmuthu<br />Thanks a ton</p><br /><p>please if you don&#039;t mind answering some question <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Some DB files had three items of (*.myd *.myi *.frm) but some just had (*.frm) files. Since I knew copy action was done successfully, DB files should not be corrupted. Is it possible some DB Tables became MyISAM and some of them InnoDB? if yes how could I know that?</p><p>How did you restore that? can I do via WAMP? or certainly should do it via Linux based mysql? and how should my configuration would be? by stopping MySQL engine and copy/paste solve my needs?</p><p>Please give me a comprehensive solution to bring out this DB, I lost my trust beside my friend <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" />&nbsp; </p><p>Thanks for the time you put for analyzing DB files.</p>]]></description>
			<author><![CDATA[null@example.com (asgare)]]></author>
			<pubDate>Wed, 12 Aug 2015 09:01:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24038#p24038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24028#p24028</link>
			<description><![CDATA[<p>The FA 2.3 InnoDB lost tables schema is attached for <strong>utf8_unicode_ci</strong> collation.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 10 Aug 2015 16:10:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24028#p24028</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24027#p24027</link>
			<description><![CDATA[<p>@asgare: Attached is your full sql set that you can populate into your database. All missing tables have been populated with just the schema.</p><p><strong>Lessons learned:</strong> To recover InnoDB tables, you will need the InnoDB cache(ibdata1, ib_logfile0, ib_logfile1) by taking the zip of the entire MySQL data folder after stopping the MySQL server.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 10 Aug 2015 16:03:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24027#p24027</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24026#p24026</link>
			<description><![CDATA[<p>The following 42 tables in your mysql data folder zip are corrupted:<br /></p><div class="codebox"><pre><code>audit_trail
bank_trans
budget_trans
comments
crm_categories
crm_contacts
crm_persons
cust_allocations
dashboard_reminders
dashboard_widgets
debtor_trans
debtor_trans_details
dimensions
fiscal_year
gl_trans
grn_batch
grn_items
item_tax_type_exemptions
item_tax_types
loc_stock 
purch_order_details
purch_orders
recurrent_invoices
refs
sales_order_details
sales_orders
stock_master
stock_moves
supp_allocations
supp_invoice_items
supp_trans
sys_types
tax_group_items
tax_groups
tax_types
trans_tax_details
voided
wo_issue_items
wo_issues
wo_manufacture
wo_requirements
workorders</code></pre></div><p>Do you still want the data from the other tables recovered? The missing tables schema can be populated from your original sql but their missing data needs to be reconstructed manually.</p><p>The 2 <strong>dashboard_*</strong> tables can be deleted and reconstructed by reinstalling the dashboard theme and extension.</p><p>Practically all your InnoDB tables have been lost!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 10 Aug 2015 15:11:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24026#p24026</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24022#p24022</link>
			<description><![CDATA[<p>Appreciate you kind condolence<br />I must solve this, don&#039;t have any excuse for my friend <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (asgare)]]></author>
			<pubDate>Mon, 10 Aug 2015 13:35:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24022#p24022</guid>
		</item>
		<item>
			<title><![CDATA[Re: Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24020#p24020</link>
			<description><![CDATA[<p>I am very sorry to hear this. I use a combination of mysqlautobackup and Owncloud to backup my data.<br />I hope someone can help you with this.</p>]]></description>
			<author><![CDATA[null@example.com (albertolima)]]></author>
			<pubDate>Mon, 10 Aug 2015 11:06:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24020#p24020</guid>
		</item>
		<item>
			<title><![CDATA[Server lost, can't recover]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24018#p24018</link>
			<description><![CDATA[<p>I really got in a big disaster <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" />((</p><p>I lost my Debian server accidentally, that was my own fault <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" />( For about 3 days (day &amp; night) I am working with DB raw files.<br />I only copied all mysql *.myd *.myi *.frm files within &quot; /var/lib/mysql&quot; directory. I don&#039;t taken backup is MyISAM or InnoDB.</p><p>I got tired of Googling, please help me.</p><br /><p>below is the uploaded files in my web server <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" />(<br />www.eai.co.ir/Backup/fa_db.zip</p>]]></description>
			<author><![CDATA[null@example.com (asgare)]]></author>
			<pubDate>Mon, 10 Aug 2015 07:36:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24018#p24018</guid>
		</item>
	</channel>
</rss>
