GithubHelp home page GithubHelp logo

Command always detects one table about nocodb HOT 8 CLOSED

nocodb avatar nocodb commented on May 23, 2024
Command always detects one table

from nocodb.

Comments (8)

o1lab avatar o1lab commented on May 23, 2024

@MahmoudKhaledAli : are there any warnings after command is started ?

also please paste the command you are using

from nocodb.

 avatar commented on May 23, 2024

I got no warning, just that the number of tables is 1 and it generated 29 APIs.
This is the command:

xmysql -u root -p root -d classicmodels

Response for api/tables:

[
{
resource: "customers"
},
{
resource: "employees"
},
{
resource: "offices"
},
{
resource: "orderdetails"
},
{
resource: "orders"
},
{
resource: "payments"
},
{
resource: "productlines"
},
{
resource: "products"
}
]

from nocodb.

o1lab avatar o1lab commented on May 23, 2024

Since tables are getting seen from api/tables - it appears the connection to mysql is good.
Looks like there is problem initialising of xmysql.

from nocodb.

o1lab avatar o1lab commented on May 23, 2024

Can you try /api/orders/describe - if it fails - then there is issue connecting to example schema with credentials. Can you ensure for example mysql schema - right credentials are getting used ? Try any mysql client and see if it works fine.

from nocodb.

 avatar commented on May 23, 2024

I tried and got cannot GET error.
I tried both MySQL Workbench and MySQL command line client and the credentials (root, root) are working fine. I also tried from Node.js with this config:

const LocaldbConfig = {
    host: "localhost",
    user: "root",
    password: "root",
    database: "games",
    port: 3306,
    dateStrings: "date"
};

And it's working fine.
If there's a problem connecting to the schema with the credentials, wouldn't that make /api/tables/ fail too?

from nocodb.

biwineGitAdmin avatar biwineGitAdmin commented on May 23, 2024

from nocodb.

o1lab avatar o1lab commented on May 23, 2024

Got a clue that mysql 8 returning some of column value in caps - which is resulting a problem in error generation. I have provided a fix in version 0.4.9

npm update -g xmysql

Try and let me know.

from nocodb.

 avatar commented on May 23, 2024

It's working now. Thank you.

from nocodb.

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.