Hi,
> database imported overwrote the database created in my localhost because it had the same name.
Almost any name can be given to a database, and there is no requirement that the name be identical to the ServerName of the VirtualHost.
Then, the relationship between the VirtualHost and its database will be done in the VirtualHost configuration file where we will put for example: $dbname = 'name_of_my_database';, that's why we can choose the name we want.
Nevertheless, if you have several local sites, to find your way around more easily, you usually give the name of the site to the database.
------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38/8.0.29 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - MysqlDumper 1.24.5 on W10 and W7 Pro 64 bit
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »