Open ghost235 opened 2 years ago
Hello,
Do you expect leading space work with a database name?
Hi,
it is working for the configs (Wordpress,Nextcloud) with arounding ‘‘.
For mysqldump it won’t work. Also mysql> use „ database“
give me an error.
edit: assigning to a „virtual server“ don‘t work too.
Also
mysql> use „ database“
give me an error.
Try using tildas `
to quote your database name, i.e. ` database`
.
Is might work for this. Maybe also mysqldump
will work with it.
But assigning to a domain/virtualserver wouldn’t work.
We don't expect it to work.
On the server template, do you have a space in front of the "Default database name" or "Prefix for additional databases", like ${DOM}
?
On the server template, do you have a space in front of the "Default database name" or "Prefix for additional databases", like
${DOM}
?
No.
Can I check the ${DOM}
from console?
On the server template, do you have a space in front of the "Default database name" or "Prefix for additional databases", like
${DOM}
?No.
It sure looks like you have a space:
Indirectly related: It's not rare to get support requests that originate from an extra space in a copy-paste.
Here are related fixes/discussions to add a warning:
One of our junior devs is exploring Virtualmin and will attempt to generate a merge request for this. Even if it's not accepted, it's a good way to learn Virtualmin and we'll put it in WikiSuite (which uses Virtualmin)
Yes, please send a PR to precent spaces at the start or end of usernames..
If the data passed through the field doesn't support trailing and/or leading spaces it should be trimmed on the server side upon submit.
So, if we don't really want that trailing space to be there — it has to be simply truncated upon submit.
It was also a similar issue on Webmin login page, with usernames in the past.
That would also work!
Ok, our junior dev will explore the various places where this could happen and prepare a proposal.
Hi,
I've the issue that new databases are createt with a leeding blan from the script installers.
If I want to create a DB manual I got.
Failed to create database : Missing or invalid database name - only letters, numbers and _ are allowed
The server tamplate looks like this.
Missed I something? Where can I look/ edit this?