打印

MYSQL备份问题

MYSQL备份问题

当时备份采用了tar zcvf /home/mysql.tar.gz  /usr/local/mysql/var现在恢复mv usr/local/mysql/var /usr/local/mysql/var


现在数据出现错误怎么办呢?

TOP

启动mysql 提示错误
[root@ONEVPS181221042628 var]# cat ./ONEVPS181221042628.err
181221 13:10:09 [Note] Plugin 'FEDERATED' is disabled.
181221 13:10:09 InnoDB: The InnoDB memory heap is disabled
181221 13:10:09 InnoDB: Mutexes and rw_locks use GCC atomic builtins
181221 13:10:09 InnoDB: Compressed tables use zlib 1.2.3
181221 13:10:09 InnoDB: Using Linux native AIO
181221 13:10:09 InnoDB: Initializing buffer pool, size = 128.0M
181221 13:10:09 InnoDB: Completed initialization of buffer pool
181221 13:10:09 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!
181221 13:10:09  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...
InnoDB: Last MySQL binlog file position 0 5890, file name mysql-bin.000239
181221 13:10:09  InnoDB: Waiting for the background threads to start
181221 13:10:10 InnoDB: 5.5.60 started; log sequence number 5093780363
181221 13:10:10  InnoDB: Warning: table '181221 13:10:10 [Note] Recovering after a crash using mysql-bin
saleoyV空格P空格N/tblinvoices'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10 [Note] Starting crash recovery...
181221 13:10:10 [Note] Crash recovery finished.
181221 13:10:10  InnoDB: Warning: table 'saleoyV空格P空格N/tbladminlog'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10  InnoDB: Warning: table 'saleoyV空格P空格N/tbldownloads'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10  InnoDB: Warning: table 'saleoyV空格P空格N/tblhosting'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10  InnoDB: Warning: table 'mysql/innodb_table_stats'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10  InnoDB: Warning: table 'mysql/innodb_index_stats'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
181221 13:10:10 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
181221 13:10:10 [Note] Server socket created on IP: '0.0.0.0'.
181221 13:10:10  InnoDB: Warning: table 'saleoyV空格P空格N/tblinvoiceitems'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

TOP

mysql是不能通过直接大阪数据库目录进行备份迁移的
https://www.vpser.net 上自行搜索: mysql 备份

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP