— 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’;
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.
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.