Docs unclear about mariasql driver for mariadb/mysql dialect
See original GitHub issueThe ‘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:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@akshay2604 Yes!