Issues after migration

After migration to new hosting, the screen keeps looping to
https://accounts.myaccount.com/public/setup

I get the following screen shot.

https://drive.google.com/open?id=1Sdxlu9xEUp7zKOxoU92Uf1MT1o_s8ejU

– Commands to create a MySQL database and user
CREATE SCHEMA ninja DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER ‘ninja’@‘localhost’ IDENTIFIED BY ‘ninja’;
GRANT ALL PRIVILEGES ON ninja.* TO ‘ninja’@‘localhost’;
FLUSH PRIVILEGES;

The hosting company moved the database. All the users and passwords etc.

When I enter the password, it just takes me back to the screen.

How can I fix this please?

.env file was copied across and on test emails work.

The problem is likely in the .env file. Specifically, it sounds like you were running a local SQL server before the migration, and the .env file is still pointing to localhost.

You’ll need to edit the file to make sure the DB_HOST= line points to the actual IP/hostname of the SQL server, and make sure that the server itself is configured to accept connections from your webserver’s address.