shiori
shiori copied to clipboard
Investigate mysql database url using password with special characters not working
Data
- I don't know I always use the "latest" branch -> go install github.com/go-shiori/shiori@latest :
- Mysql:
- FreeBSD:
- N/A:
Describe the bug / actual behavior
I've been using shiori for months. I do regular backup of my instances.
Until now all was fine.
I have the good idea to do an upgrade with another go install github.com/go-shiori/shiori@latest
Look like the new version changed the way we have to connect on Mysql
With something like this :
SHIORI_DATABASE_URL="mysql://username:password@(hostname:port)/database?charset=utf8mb4"
Problem this is a very poor connection method that doesn't allow strong passwords with special characters ... As I'm using hard password with ! and "#?" .
I've tried changing the database password to something simpler, but I still can't get shiori to connect to mysql .... Unable to correctly parse the mysql connection string ... Documentation is not very clear about the good parameter to use.
After several tries I decided to rollback from a previous backup (which worked perfectly I never updated it or touch anything for month). and reset my original MySQL password.
And since I only have this message on the log when I start shiori ...
"Error running migration: no migration found for version 5: read down for version 5 migrations/mysql: file does not exist"
I really don't know what happens ... And what is the missing file ?!?
The database password is correct and I can connect to it.