I ‘m designing and implementing the personal note site for users with Cobra + viper, using Go as backend and React for frontend.
Now what i wish to do is just to change the DB name.(I use the MySQL DB and set the default as the root user and no password. And DB name was memos originally.)
So I changed the name as like this:
In case of local—when I run this server in my host, there was no error, but the others that fork my git, can’t run correctly—there couldn’t migrate……….let me know , plz, who has done such issue already?
Thanks for reply, well, users should create the DB by themselves(ex, create the MySQL DB as named to memos–this is default name in this project ), then the backend server create the essential tables automatic, using migration.
But when I change the DB name,(also other users change DB name in their owner-MySQL server too,) It’s finish the error that can’t migrate table in DB.
I didn’t use docker still, but it’s same result even if use.