AttributeError: 'MariaDBDatabase' object has no attribute 'password'

Good day everyone,

I hope you can help me with my problem.

When I ran localhost, this is my error:
AttributeError
AttributeError: ‘MariaDBDatabase’ object has no attribute ‘password’

This is my full traceback:
Traceback (most recent call last):
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/middlewares.py”, line 15, in call
return super(StaticDataMiddleware, self).call(environ, start_response)
File “/home/wencel/Desktop/sample/frappe-bench/env/lib/python2.7/site-packages/werkzeug/middleware/shared_data.py”, line 227, in call
return self.app(environ, start_response)
File “/home/wencel/Desktop/sample/frappe-bench/env/lib/python2.7/site-packages/werkzeug/middleware/shared_data.py”, line 227, in call
return self.app(environ, start_response)
File “/home/wencel/Desktop/sample/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 231, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/wencel/Desktop/sample/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers/base_request.py”, line 235, in application
resp = f(*args[:-2] + (request,))
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/app.py”, line 81, in application
response = handle_exception(e)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/app.py”, line 191, in handle_exception
http_status_code=http_status_code)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/website/render.py”, line 33, in render
raise_if_disabled(path)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/website/render.py”, line 345, in raise_if_disabled
‘route’: [‘like’, ‘%{0}’.format(path)]
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/database/database.py”, line 525, in get_all
return frappe.get_all(*args, **kwargs)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/init.py”, line 1291, in get_all
return get_list(doctype, *args, **kwargs)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/init.py”, line 1264, in get_list
return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 94, in execute
result = self.build_and_run()
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 108, in build_and_run
args = self.prepare_args()
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 130, in prepare_args
self.set_optional_columns()
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/model/db_query.py”, line 281, in set_optional_columns
columns = frappe.db.get_table_columns(self.doctype)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/database/database.py”, line 846, in get_table_columns
columns = self.get_db_table_columns(‘tab’ + doctype)
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/database/database.py”, line 842, in get_db_table_columns
where table_name = %s ‘’’, table)]
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/database/database.py”, line 120, in sql
self.connect()
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/database/database.py”, line 73, in connect
self._conn = self.get_connection()
File “/home/wencel/Desktop/sample/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 88, in get_connection
conn = pymysql.connect(self.host, self.user or ‘’, self.password or ‘’,
AttributeError: ‘MariaDBDatabase’ object has no attribute ‘password’

When I try to run bench mariadb, here’s the prompt message:
ERROR 1045 (28000): Access denied for user ‘_1bd3e0294da19198’@‘localhost’ (using password: YES)

What seems to be the problem?

Thank you in advance.