Mariasql fails with 'no database selected'
See original GitHub issueFixed by setting db
instead of database
:
config = {
client: 'mariasql',
connection: {
db: 'yourdb',
user: 'your_user',
host: 'your_host',
password: 'your_pass'
}
};
Issue Analytics
- State:
- Created 9 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Error 1046 No database Selected, how to resolve?
Error 1046 occurs when we miss to connect our table with a database. In this case, we don't have any database and that's...
Read more >Error 1046 Mariadb: No database selected
Ok, I have created a database with a "-" on the name (did the same thing on the user)... then when I try...
Read more >MySQL Error - #1046 - No database selected - Tutorialspoint
MySQL Error - #1046 - No database selected - The error-#1046 can occur when we are creating a table, but forget to select...
Read more >[MDEV-26469] "No database selected" error reported even if a ...
When executing a Delete request with a CTE, the request fails with "No database selected" error. Below a script that reproduce the issue: ......
Read more >Selecting a MariaDB Database
In this tutorial, you will learn how to select a MariaDB database as the current database. ... ERROR 1046 (3D000): No database selected....
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
This is the most ridiculous s#@t ever!
I spent 3 hours looking around for this solution
I suppose I should let the guys at adonis.js know to update their mariadb config example: http://adonisjs.com/docs/3.2/database-setup#_mariadb
before someone else’s head explodes
Hello, I too am getting this error with
mariasql (latest)
. 2 years later and still no alias for the property with mariasql ^_^Unhandled rejection Error: select
users
.* fromusers
- No database selected at Error (native)