question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs unclear about mariasql driver for mariadb/mysql dialect

See original GitHub issue

The ‘Getting started’ part of the docs mention the use of ‘mariasql’, but I’m not able to get it working. In my project I have installed both the sequelize and mariasql modules, but trying to create a new Sequelize instance using any of mariadb, mysql or mariasql just fails telling me to ‘install the mysql package manually’. Is there anything extra I need to do to get mariasql to work?

The code I (tried) to use is:

var Sequelize   = require('sequelize');

//var sequelize = new Sequelize('mariadb://test:foo@localhost/test');
//var sequelize = new Sequelize('mariasql://test:foo@localhost/test');
var sequelize = new Sequelize('mysql://test:foo@localhost/test');

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
mickhansencommented, Apr 11, 2015

our mariadb support uses the mysql dialect codebase completely so you still need to install the mysql driver, i agree that could be explained way better in the docs.

1reaction
abdulhannanalicommented, Apr 26, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sequelize error with MariaDB - node.js - Stack Overflow
Sequelize now has the dialect mariadb , do not use mysql npm install --save mariadb npm install --save sequelize. Sequelize connection code.
Read more >
Hibernate & MariaDB - MariaDB Knowledge Base
Hello, what settings do I need in a Hibernate (/Spring) configuration file (XML) for MariaDB? The same as in MySQL? Which URL, JDBC...
Read more >
Umigrate NPM | npm.io
I want to be able to switch between Databases at any time, without having to care about compatibility of the existing Migrations. Completely...
Read more >
MariaDB Dialects - In Relation To
While to connect to a MySQL application, the connection properties look as follows: 'db.dialect' : 'org.hibernate.dialect.MySQL57InnoDBDialect',.
Read more >
egg-knex - NPM Package Overview - Socket.dev
using mysql default support, there is no need to install any external things ... using mariadb install dependency npm i --save mariasql ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found