Hi,
I have a problem when I try Restore database in localhost machine.
It give me this error :
pymysql.err.ProgrammingError: (1146, u"Table ‘d56cb677eaab3383.tabSingles’ doesn’t exist")
Note :
Any help or suggestion ?
Thanks
adnan
February 24, 2018, 5:52am
2
which command are you using to restore database?
bench or mysql?
adnan
February 24, 2018, 6:12am
4
try with these parameters
bench --force --site erpnext restore /home/frappe/frappe/
Thank you For your comment and support
I try it but same error I get
adnan
February 24, 2018, 8:32am
6
do the following steps.
create new site at new server with same name
install erpnext app
restore with the following command.
bench --force --site erpnext restore /home/frappe/frappe/
it’ll work.
the error, in your backup,is it’s trying to insert records in table which dosen’t exist.
adnan:
do the following steps.
create new site at new server with same name
install erpnext app
restore with the following command.
bench --force --site erpnext restore /home/frappe/frappe/
it’ll work.
the error, in your backup,is it’s trying to insert records in table which dosen’t exist.
I try it I create new site at new server with same name I install Erpnext
I use this commend bench --force --site erpnext restore /home/frappe/frappe/
Again same error
pymysql.err.ProgrammingError: (1146, u"Table ‘1bd3e0294da19198.tabSingles’ doesn’t exist")
adnan
February 24, 2018, 9:59am
8
AhmedSmart:
1bd3e0294da19198
try to restore your DB directly from MYsql
mysql -u root -p 1bd3e0294da19198 < /home/path to sql file.
it’ll ask for your DB root password
please make sure your file should be extracted from *.sql.gz extention.
adnan
February 24, 2018, 10:00am
9
after this you can run bench migrate
adnan:
try to restore your DB directly from MYsql
mysql -u root -p 1bd3e0294da19198 < /home/path to sql file.
it’ll ask for your DB root password
please make sure your file should be extracted from *.sql.gz extention.
I do it , Now I have this error
pymysql.err.ProgrammingError: (1146, u"Table ‘1bd3e0294da19198.tabPatch Log’ doesn’t exist")
adnan
February 24, 2018, 10:16am
11
i have a doubt about your backup file.
if you still have access to oldserver you can take the backup again directly from Mysql
mysqldump -u root -p 1bd3e0294da19198 > /home/path to sql file.
and then restore that new file.
i too have the same problem.
Followed all the above specified steps.
but not resolved
1 Like
I also tried the steps above using bench and mysql, bench is getting same error but when i try using mysql it was successful yet my data is not restored.
AhmedSmart:
pymysql.err.ProgrammingError: (1146, u"Table ‘d56cb677eaab3383.tabSingles’ doesn’t exist")
i have the same issue. the problem is in backup file for me.
but there is no error rise at ‘bench backup’. but when i backup with ‘mysqldump’ got an timeout then tuning the parameters at *.cnf file fixed the issue.
I am also getting the same issue Table “tabSingles” doesn’t exist.
I tried --force method also but still getting the same error.
But i tried to restore the database form backend with this command “bench --site your_site_name mariadb” and then “source /mysqldb_file_location” it worked.
I want to know the exact reason why the backup is not being uploaded with the bench
command.