MySQL Forums
Forum List  »  Backup

ERROR 1146 (42S02) During Database restore. Ver: 5.1.54-community
Posted by: Brijendra Shukla
Date: November 09, 2016 09:20AM

I have a MYSQL server with multiple databases, I use a batch file + task scheduler to back up my databases on daily basis. During restore of one of the database using Mysql Workbench on a new server with same MYSQL server version (5.1.54-community) I encountered ERROR 1146 (42S02) at line 18819: Table 'DB2.rhicd5_hic_desc' doesn't exist
This is wired as DB2 is not the database I was restoring. Somehow DB1 (database being restored) has reference to 'DB2.rhicd5_hic_desc' (a view from second database on my old server).
Command to backup database:
C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqldump.exe" --user=%dbuser% --password=%dbpass% --databases %db% > "%db%.%backupdate%.sql"

Someone please help me understand why this is happening and how can I do a clean backup.

Server 1 OS : windows 2012
MYSQL ver : 5.1.54-community
Server 2 OS : windows 2012
MYSQL ver : 5.1.54-community

Options: ReplyQuote


Subject
Views
Written By
Posted
ERROR 1146 (42S02) During Database restore. Ver: 5.1.54-community
2628
November 09, 2016 09:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.