You can use dots in DB name in MySQL for sure if you use backticks when specifying it. At last Wordpress copes with that. Also nothing should prevent you to use dots in SQLite DB name. This is very annoying and frustrating issue, because
- it is natural to name database by FQDN of the site which uses it;
- this field is filled after you have created DB and have set up the permissions, so it forces you to do this job twice without technical reason.