Not every customization made to MySQL 5.6 or 5.7 will be compatible with MySQL 8.0, so it is not recommended to copy the database configuration file from your currently installed version of MySQL for use as the database configuration file for MySQL 8.0. However, it is best practice to back up your current database configuration file to keep for reference for when you are making customizations to MySQL 8.0.