adonisjs / v5-docs

📚 Source code and documentation for the official docs website.
https://v5-docs.adonisjs.com
88 stars 138 forks source link

Wrong documentation for database driver config #174

Closed ricardoaranha96 closed 2 years ago

ricardoaranha96 commented 2 years ago

Package version

5.8.4

Describe the bug

Link of documentation: https://docs.adonisjs.com/guides/database/introduction#drivers-config

The documentation guides us to install the package mysql2 but in the config example the client used is mysql. After I changed it to mysql2 the config started to work.

Also, the code generated by node ace configure @adonisjs/lucid generates a file with a comment that instructs to install mysql instead of mysql2.

Reproduction repo

No response

RomainLanz commented 2 years ago

Hey @ricardoaranha96! 👋🏻

I have fixed the missing documentation, and this PR https://github.com/adonisjs/lucid/pull/871 did the generated files.