Giter Site home page Giter Site logo

error connecting to mysql about emacs-edbi HOT 5 CLOSED

kiwanami avatar kiwanami commented on July 28, 2024
error connecting to mysql

from emacs-edbi.

Comments (5)

kiwanami avatar kiwanami commented on July 28, 2024

The error message says 'could not establish the connection'.
If the DB hostname is indicated by localhost at URI, the perl DBI uses the domain socket to connect.
In some environments, it fails because of inconsistency of the domain socket path between the server and drivers.
Will you try following URI?

DBI:mysql:(database name):127.0.0.1

from emacs-edbi.

vinhdizzo avatar vinhdizzo commented on July 28, 2024

Thanks. I think I was able to login. However, my dbviewer buffer shows "No tables." There should be many tables.

Am I doing something wrong? Thanks.

from emacs-edbi.

kiwanami avatar kiwanami commented on July 28, 2024

It seems #16 may affect the problem. Now the bug was fixed.
Will you try update edbi.el and ctable.el?
I'm sorry for trouble you.

from emacs-edbi.

vinhdizzo avatar vinhdizzo commented on July 28, 2024

great. works now.

I must say that dbi:mysql:dbname:server is a little odd. I think dbi:mysql:server:dbname is more intuitive (largest to smallest).

will continue to test out. looks solid based on what I've seen so far. I feel I finally have a universal sql client in emacs now. No need to use multiple clients and get confused changing from one to another.

from emacs-edbi.

kiwanami avatar kiwanami commented on July 28, 2024

Thank you for your confirmation! I'm glad to know that you like edbi.

The data source name comes from perl's DBI module.
You can use any syntax according to the document:
http://search.cpan.org/~timb/DBI/DBI.pm#connect
(Yes. I think the syntax is not familiar too...)

from emacs-edbi.

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.