Giter Site home page Giter Site logo

Comments (11)

o1lab avatar o1lab commented on April 28, 2024 1

( .. ran into mysqljs connectivity issue whilst setting up mysql 8. Will give it a try later )

from nocodb.

o1lab avatar o1lab commented on April 28, 2024

@ashankasr : looks like it is compatibility with mysql v8.0.

I haven;t tested it with mysql v8.0.

Could you please paste this from your mysql console

describe information_schema.VIEWS;

from nocodb.

tmlzx avatar tmlzx commented on April 28, 2024

How to solve this problem

from nocodb.

asllamas avatar asllamas commented on April 28, 2024

I've the same problem, any solution?

from nocodb.

o1lab avatar o1lab commented on April 28, 2024

@tmlzx @asllamas : could you please paste the error stack you are seeing.

I tried connecting to mysql8 on my machine and encountered following error from mysql module

Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

This looks like issue in npm module mysql - and they are resolving this issue here - mysqljs/mysql#1962. Once this is resolved I will have a look.

Note:
Mysql workbench 6.x.x had issues connecting to mysql 8 server. Had to update workbench to latest dev version 8.0.1 to connect.

from nocodb.

asllamas avatar asllamas commented on April 28, 2024

The error:

 Generating REST APIs at the speed of your thought..

C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Parser.js:80
        throw err; // Rethrow non-MySQL errors
        ^

TypeError: Cannot read property 'isView' of undefined
    at Xsql.iterateToCacheTables (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\lib\xsql.js:75:74)
    at Query.self.pool.query (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\lib\xsql.js:46:14)
    at Query.<anonymous> (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\Connection.js:502:10)
    at Query._callback (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\Connection.js:468:16)
    at Query.Sequence.end (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24)
    at Query._handleFinalResultPacket (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\sequences\Query.js:139:8)
    at Query.EofPacket (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\sequences\Query.js:123:8)
    at Protocol._parsePacket (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Protocol.js:278:23)
    at Parser.write (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Parser.js:76:12)
    at Protocol.write (C:\Users\alex\AppData\Roaming\npm\node_modules\xmysql\node_modules\mysql\lib\protocol\Protocol.js:38:16)

from nocodb.

o1lab avatar o1lab commented on April 28, 2024

@asllamas : thank you.

Could you please paste the output of the following mysql query on your machine. This will be helpful.

describe information_schema.VIEWS;

Note:
Strangely, from your and original log in this issue - it appears mysql connection was made successfully(!) and there was an issue with reading views table. However with my setup - it is failing to connect.

from nocodb.

asllamas avatar asllamas commented on April 28, 2024
Field,Type,Null,Key,Default,Extra
TABLE_CATALOG,varchar(64),YES,,NULL,
TABLE_SCHEMA,varchar(64),YES,,NULL,
TABLE_NAME,varchar(64),YES,,NULL,
VIEW_DEFINITION,longtext,YES,,NULL,
CHECK_OPTION,"enum('NONE','LOCAL','CASCADED')",YES,,NULL,
IS_UPDATABLE,"enum('NO','YES')",YES,,NULL,
DEFINER,varchar(93),YES,,NULL,
SECURITY_TYPE,varchar(7),YES,,NULL,
CHARACTER_SET_CLIENT,varchar(64),NO,,NULL,
COLLATION_CONNECTION,varchar(64),NO,,NULL,

from nocodb.

o1lab avatar o1lab commented on April 28, 2024

@asllamas: Thank you. Please check if latest version of xmysql is of any help.

There was an issue accessing isView property which was overlooked (as I am still not clear on how xmysql is able to access mysql 8)

Update or install latest xmysql (0.4.8)

npm update -g xmysql

Please let me know the result.

from nocodb.

asllamas avatar asllamas commented on April 28, 2024

works perfectly! , thank you

from nocodb.

jejDev avatar jejDev commented on April 28, 2024

Can you upgrade on docker please? 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.