C
C
codeorlov2018-11-06 13:28:50
JavaScript
codeorlov, 2018-11-06 13:28:50

How do I restore the database from .frm and ibdata?

Hello! We set the task to restore the database, which (as I assume, after an unsuccessful upgrade of mysql to 5.7) ceased to function normally. All we managed to get were tables in the .frm format, ib_logfile1, mysql_upgrade_info - which indicated the version 5.5.46 and the ibdata1 file 1.5 GB in size.
When opening any table - 1146 - Table does not exist. When you enter phpmadmin and select this database, the interface just refuses to work and throws it on the login window, sometimes drawing the following:

Warning in ./libraries/dbi/DBIMysqli.class.php#261
 mysqli_query(): MySQL server has gone away

Backtrace

./libraries/dbi/DBIMysqli.class.php#261: mysqli_query(
object,
string 'SHOW INDEXES FROM cache FROM dak',
integer 0,
)
./libraries/DatabaseInterface.class.php#244: PMA_DBI_Mysqli->realQuery(
string 'SHOW INDEXES FROM cache FROM dak',
object,
integer 0,
)
./libraries/navigation/Nodes/Node_Table.class.php#114: PMA_DatabaseInterface->tryQuery(string 'SHOW INDEXES FROM cache FROM dak')
./libraries/navigation/NavigationTree.class.php#519: Node_Table->getPresence(string 'indexes')
./libraries/navigation/NavigationTree.class.php#444: PMA_NavigationTree->_addTableContainers(
object,
integer 0,
string '',
integer 0,
)
./libraries/navigation/NavigationTree.class.php#297: PMA_NavigationTree->_buildPathPart(
array,
string 'tables',
integer 0,
string '',
integer 0,
)
./libraries/navigation/NavigationTree.class.php#867: PMA_NavigationTree->_buildPath()
./libraries/navigation/Navigation.class.php#50: PMA_NavigationTree->renderPath()
./navigation.php#75: PMA_Navigation->getDisplay()
Warning in ./libraries/dbi/DBIMysqli.class.php#261
 mysqli_query(): Error reading result set's header

Backtrace

./libraries/dbi/DBIMysqli.class.php#261: mysqli_query(
object,
string 'SHOW INDEXES FROM cache FROM dak',
integer 0,
)
./libraries/DatabaseInterface.class.php#244: PMA_DBI_Mysqli->realQuery(
string 'SHOW INDEXES FROM cache FROM dak',
object,
integer 0,
)
./libraries/navigation/Nodes/Node_Table.class.php#114: PMA_DatabaseInterface->tryQuery(string 'SHOW INDEXES FROM cache FROM dak')
./libraries/navigation/NavigationTree.class.php#519: Node_Table->getPresence(string 'indexes')
./libraries/navigation/NavigationTree.class.php#444: PMA_NavigationTree->_addTableContainers(
object,
integer 0,
string '',
integer 0,
)
./libraries/navigation/NavigationTree.class.php#297: PMA_NavigationTree->_buildPathPart(
array,
string 'tables',
integer 0,
string '',
integer 0,
)
./libraries/navigation/NavigationTree.class.php#867: PMA_NavigationTree->_buildPath()
./libraries/navigation/Navigation.class.php#50: PMA_NavigationTree->renderPath()
./navigation.php#75: PMA_Navigation->getDisplay()

All I managed to do was to restore the structure of the tables using this simple method:
image_2018-11-05_22-43-53.png
Returning the date did not work.
If you just create a database and upload all these files there, mysql crashes and does not start. Log:
181106 12:01:06 [Note] c:\ospanel\modules\database\MySQL-5.5-x64\bin\mysqld.exe (mysqld 5.5.57) starting as process 7416 ...
181106 12:01:06 [Note] Plugin 'FEDERATED' is disabled.
181106 12:01:06 InnoDB: The InnoDB memory heap is disabled
181106 12:01:06 InnoDB: Mutexes and rw_locks use Windows interlocked functions
181106 12:01:06 InnoDB: Compressed tables use zlib 1.2.3
181106 12:01:06 InnoDB: Initializing buffer pool, size = 128.0M
181106 12:01:06 InnoDB: Completed initialization of buffer pool
181106 12:01:06 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
181106 12:01:06  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
181106 12:01:06  InnoDB: Assertion failure in thread 12200 in file fsp0fsp.c line 2102
InnoDB: Failing assertion: inode
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
10:01:06 UTC - mysqld got exception 0x80000003 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.

key_buffer_size=26214400
read_buffer_size=2097152
max_used_connections=0
max_threads=30
thread_count=0
connection_count=0
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 118072 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
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...
7ff682641e92    mysqld.exe!my_thread_name()
6e925f41    MSVCR90.dll!raise()
6e92b846    MSVCR90.dll!abort()
7ff6826e03b9    mysqld.exe!my_osmaperr()
7ff6826e0687    mysqld.exe!my_osmaperr()
7ff6826a737e    mysqld.exe!my_osmaperr()
7ff6826fcc36    mysqld.exe!my_osmaperr()
7ff6826828d5    mysqld.exe!my_osmaperr()
7ff68267abf8    mysqld.exe!my_osmaperr()
7ff682444366    [email protected]@[email protected]@@Z()
7ff68243d722    [email protected]@[email protected]@[email protected]@[email protected]@[email protected]()
7ff682441f09    [email protected]@[email protected]()
7ff68242cb70    mysqld.exe!handle_shutdown()
7ff68242d722    [email protected]@[email protected]()
7ff68242db90    [email protected]@[email protected]()
7ff68242deb3    [email protected]@[email protected]()
7ff6827d533a    mysqld.exe!my_mb_ctype_mb()
7ffc005b3034    KERNEL32.DLL!BaseThreadInitThunk()
7ffc01691461    ntdll.dll!RtlUserThreadStart()
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

I will be glad for any help!
All files by link - https://dropmefiles.com/ofXUj

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
codeorlov, 2018-11-06
@codeorlov

I found a wonderful site - Link , which completely restored all the data in the tables and the database itself, but you can only download the dump for money, the amount is not very small.
I would very much like to understand the principle and repeat it myself, since the question is still relevant.
UPDATE:
ISSUE IS RESOLVED, THE TABLES WERE POSSIBLE TO RAISE with XAMPP using this instruction - Instruction
Thanks to everyone who was interested in this topic!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question