sql-migrate
sql-migrate copied to clipboard
Error 1046: No database selected
trafficstars
development:
dialect: mysql
datasource: root@/test?parseTime=true
dir: migrations/mysql
table: migrations
this is my dbconfig.yml, but it show 'No database selected' when I run command 'sql-migrate status
@rubenv can you see it ? my mysql password is empty
I'm sorry, but I don't use MySQL. We have integration tests for MySQL so all I can say is that it should work.
Perhaps there's something wrong with your database? Can't really help out here.
- the datasource must declare dbname? It can't support "one sql for db1, another sql for db2"
- when sql declare "use db1", but datasource declare 'db2',It will become conflict