Mysql Database Name Can Contain Only Latin Characters, Numbers, And Underscores

Is there anyway round this? I'm creating a small website on shared hosting that creates the DB name for you so I can't change it. CS Cart won't allow dashes.

"MySQL database name can contain only Latin characters, numbers, and underscores"

Hello.

You can't use char "-" in database name.

https://stackoverflow.com/questions/35506161/database-name-restrictions

Best regards

Robert.

Wanna bet?

Solution ;)

In /install/app/Installer/Validator.php on 222 line change:

if (preg_match('/^[0-9a-zA-Z$_]{1,63}$/', $name)) {

to
if (preg_match('/^[0-9a-zA-Z$_-]{1,63}$/', $name)) {

Wanna bet?

Solution ;)

In /install/app/Installer/Validator.php on 222 line change:

if (preg_match('/^[0-9a-zA-Z$_]{1,63}$/', $name)) {

to
if (preg_match('/^[0-9a-zA-Z$_-]{1,63}$/', $name)) {

It does not depend on CS-Cart, please check MySQL requirements

https://dev.mysql.com/doc/refman/5.7/en/identifiers.html