Daniel_scx 发表于 2018-12-21 13:07:19

MYSQL备份问题

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


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

Daniel_scx 发表于 2018-12-21 13:10:20

启动mysql 提示错误
# cat ./ONEVPS181221042628.err
181221 13:10:09 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:09InnoDB: 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:09InnoDB: Waiting for the background threads to start
181221 13:10:10 InnoDB: 5.5.60 started; log sequence number 5093780363
181221 13:10:10InnoDB: Warning: table '181221 13:10:10 Recovering after a crash using mysql-bin
saleoyV空格P空格N/tblinvoices'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10 Starting crash recovery...
181221 13:10:10 Crash recovery finished.
181221 13:10:10InnoDB: Warning: table 'saleoyV空格P空格N/tbladminlog'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10InnoDB: Warning: table 'saleoyV空格P空格N/tbldownloads'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10InnoDB: Warning: table 'saleoyV空格P空格N/tblhosting'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10InnoDB: Warning: table 'mysql/innodb_table_stats'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10InnoDB: Warning: table 'mysql/innodb_index_stats'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10 Server hostname (bind-address): '0.0.0.0'; port: 3306
181221 13:10:10    - '0.0.0.0' resolves to '0.0.0.0';
181221 13:10:10 Server socket created on IP: '0.0.0.0'.
181221 13:10:10InnoDB: Warning: table 'saleoyV空格P空格N/tblinvoiceitems'
InnoDB: in InnoDB data dictionary has unknown flags 50.
181221 13:10:10 Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

licess 发表于 2018-12-21 20:14:01

mysql是不能通过直接大阪数据库目录进行备份迁移的
https://www.vpser.net 上自行搜索: mysql 备份
页: [1]
查看完整版本: MYSQL备份问题