Giter VIP home page Giter VIP logo

Comments (5)

shashankshirke avatar shashankshirke commented on May 9, 2024

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.

nextchamp-saqib avatar nextchamp-saqib commented on May 9, 2024

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.

nextchamp-saqib avatar nextchamp-saqib commented on May 9, 2024

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.

chechani avatar chechani commented on May 9, 2024

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"?

Tried what you sugessted, but getting same error.

from insights.

chechani avatar chechani commented on May 9, 2024

Its resolved

from insights.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.