Comments (5)
Hi,
Even I am getting an issue while trying to connect the database. It says no database selected even though I have correctly put in all the fields and the connection is successfully established.
Traceback (most recent call last):
File "apps/insights/insights/insights/doctype/data_source/data_source.py", line 411, in connect_to_db
yield db
File "apps/insights/insights/insights/doctype/data_source/data_source.py", line 88, in execute_query
result = db.sql(query, **kwargs)
File "apps/frappe/frappe/database/database.py", line 209, in sql
self._cursor.execute(query, values)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 148, in execute
result = self._query(query)
File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 310, in _query
conn.query(q)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 548, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 775, in _read_query_result
result.read()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1156, in read
first_packet = self.connection._read_packet()
File "env/lib/python3.10/site-packages/pymysql/connections.py", line 725, in _read_packet
packet.raise_for_error()
File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
err.raise_mysql_exception(self._data)
File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1046, 'No database selected')
from insights.
Hi,
Even I am getting an issue while trying to connect the database. It says no database selected even though I have correctly put in all the fields and the connection is successfully established.
This is a known issue, check this comment for a solution #5 (comment)
from insights.
I am getting issue in connecting an erpnext site database.
ERPNext v14 beta5 Frappe V14 beta 4 while adding database, I am getting below error
I am not 100% sure but this looks like a problem with frappe framework installation.
Can you try uninstalling "insights" and then migrating your site and then installing "insights"?
from insights.
I am getting issue in connecting an erpnext site database.
ERPNext v14 beta5 Frappe V14 beta 4 while adding database, I am getting below errorI am not 100% sure but this looks like a problem with frappe framework installation. Can you try uninstalling "insights" and then migrating your site and then installing "insights"?
Tried what you sugessted, but getting same error.
from insights.
Its resolved
from insights.
Related Issues (20)
- Missing options from classic query builder in the visual query builder HOT 1
- updating insights. HOT 2
- Visual Builder UX HOT 6
- Chart is not updating when database is updated HOT 6
- Organising dashboard with private / shared permissions HOT 1
- Can it be used on non frappe database? HOT 1
- SQL union support HOT 1
- Is this released? Which branch is production-ready? HOT 3
- Installation Error HOT 3
- Number Cards - Labels hidden HOT 3
- Unable to share dashboards with users HOT 1
- Installation Failing on Frappe Cloud HOT 1
- Error - Insights with the new Frappe 15 and Erpnext 15. HOT 2
- Document modified error on dashboard HOT 1
- Unable to select calculated field on Visual query HOT 2
- Visual dashboard not updated dynamically + Filter HOT 1
- BUG : Can't use saved table (2 level) HOT 2
- Error while installing app HOT 1
- Error while Installing Insight App over the site HOT 1
- Prompt overlaps with expression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from insights.