Hi,
t is not possible to define where the database corresponding to a VirtualHost is. This is not a limitation of Wampserver, but of MySQL or MariaDB.
There is only one possibility to define where the databases for MySQL or MariaDB are, it is the line :
datadir=
of the my.ini file
But
CAUTION, datadir does not only define the location of your database, but also the location of the databases needed to run MySQL, i.e. mysql, performance_schema and sys databases.
This forms an inseparable whole. You cannot separate user databases from those required for MySQL, with 'free' versions of MySQL or MariaDB.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons