GithubHelp home page GithubHelp logo

Comments (4)

jlousada315 avatar jlousada315 commented on June 29, 2024

What I did was run on Terminal:
subunit2sql --database-connection tempest-full

I think the argument is not correct.

from ciml.

afrittoli avatar afrittoli commented on June 29, 2024

The subunit2sql CLI can be used to inject subunit files into the DB, which is not what you need to do, at least not against openstack's DB.

You can browse the DB directly using the CLI or any SQL graphical client.
In either case learning some SQL basics will help :)

You don't need to access the MySQL DB directly to use CIML, but it may help you understanding what data is available to you.

Example on using the CLI:

mysql -u query -p -h logstash.openstack.org -D subunit2sql

The password is query, the account is read only.

mysql> show tables;
+-----------------------+
| Tables_in_subunit2sql |
+-----------------------+
| alembic_version       |
| attachments           |
| run_metadata          |
| runs                  |
| test_metadata         |
| test_run_metadata     |
| test_runs             |
| tests                 |
+-----------------------+
8 rows in set (0.13 sec)

from ciml.

jlousada315 avatar jlousada315 commented on June 29, 2024

Thank you , I managed to do that.

But when I try to make a --database-connection I get the following:

ImportError: dlopen(/usr/local/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libmysqlclient.18.dylib
Referenced from: /usr/local/lib/python3.7/site-packages/MySQLdb/_mysql.cpython-37m-darwin.so
Reason: image not found

from ciml.

afrittoli avatar afrittoli commented on June 29, 2024

@johnnylousas that seems to be a problem with your mysql library. I would recommend using pymsql as per requirements.txt.
I'm going to go ahead and close this one which is about the direct connection to mysql.
Feel free to open a new issue if you hit other problems.

from ciml.

Related Issues (14)

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.