Hello,
I have a cloned moodle, one for the development environment and one for the production environment.
I have a database that works in dev and pro perfectly, I try to clone the database so that each environment has its own database.
These are the steps I follow to clone and restore the database.
mysqldump -u user -p database> database.sql
mysql -u user -p database <database
I grant user permissions on the database.
When I change the setting in config.php to point to the new database, the install screen is displayed and it doesn't work.
Is there something that needs to change?
I have also checked
SHOW GLOBAL VARIABLES WHERE variable_name IN ('innodb_file_format', 'innodb_large_prefix', 'innodb_file_per_table');
and is set to Barracuda, ON, ON.
I make it clear that the original database works on the two moodle sites since they are the same.
The moodle version is Moodle 3.10.1+ (Build: 20210211).
Thanks for the help.
Greetings.