Can not connect mariadb

frappe@ubuntu:~/frappe-bench$ bench mariadb
Traceback (most recent call last):
File “/home/frappe/frappe-bench/sites/…/env/bin/mycli”, line 7, in
from mycli.main import cli
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/”, line 32, in
from .packages.special.main import NO_QUERY
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/packages/special/”, line 9, in
from . import dbcommands
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/packages/special/”, line 5, in
from mycli.packages.special import iocommands
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/packages/special/”, line 17, in
from mycli.packages.prompt_utils import confirm_destructive_query
ImportError: cannot import name ‘confirm_destructive_query’

what’s wrong?

Any help??

It looks like a python library is missing.

What version frappe/erpnext?
How and when was it installed?
Have you been able to connect to Mariadb in the past?

Any additional info will help

Hello smino,

We are new to erpnext…so for learning purpose we are using dev.ova file with VM

Yes I was able to connect mariadb in past…it had stopped working before few days.

Try: bench update --patch , then bench restart and see if it helps.

Did bench update --patch, but still not able to connect mariadb…

got same error…

Any more suggestions?

It will be better if you try the trial account and then meanwhile do the local install


bench mysql