gitea/routers/install
wxiaoguang a6f961fba4
Refactor install page (db type) ()
* Refactor install page (db type)

* set correct default DB HOST for different DB TYPE
* remove legacy TiDB from documents
* unify the usage of DB TYPE, in code we only use "mysql". "MySQL" is only shown to users for friendly name.

* Gitea can use TiDB via MySQL protocol

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
..
install.go Refactor install page (db type) ()
routes.go Use a variable but a function for IsProd because of a slight performance increment ()
routes_test.go just add some unit tests ()
setting.go Improve install code to avoid low-level mistakes. ()