ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Can not connect mariadb


#1

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/main.py”, line 32, in
from .packages.special.main import NO_QUERY
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/packages/special/init.py”, line 9, in
from . import dbcommands
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/packages/special/dbcommands.py”, line 5, in
from mycli.packages.special import iocommands
File “/home/frappe/frappe-bench/env/lib/python3.5/site-packages/mycli/packages/special/iocommands.py”, line 17, in
from mycli.packages.prompt_utils import confirm_destructive_query
ImportError: cannot import name ‘confirm_destructive_query’

what’s wrong?


#2

Any help??


#3

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


#4

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.


#5

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


#6

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

got same error…

Any more suggestions?


#7

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


#8

Try

bench mysql