
- #Psequel could not connect to localhost install
- #Psequel could not connect to localhost update
- #Psequel could not connect to localhost password
If you imported data from an environment that includes a table prefix and forgot to add it to your settings (or vice-versa), you’ll need to adjust your settings so DB_TABLE_PREFIX is consistent. The database should have all the same tables as the original source, and if not you should re-export and re-import since incomplete data could cause other problems. Once you’ve imported project data, you should be able to browse it from a tool like Sequel Pro, TablePlus, or phpMyAdmin. Did you successfully import a database from another project?.

In this case there are a few things to check:
#Psequel could not connect to localhost install
If you’re seeing the install screen where you were expecting to log in to the control panel, Craft isn’t finding your project data. When Craft has a valid database connection and doesn’t find data from an existing install, it will prompt you to begin the installation process. Troubleshooting a surprise install prompt # Also know that a DB_DSN string will override settings you otherwise specify for DB_DRIVER, DB_SERVER, DB_DATABASE, and DB_PORT. (But don’t write your database settings directly into config/db.php if you can help it!) Be sure you haven’t provided settings more than once that could be in conflict. env file, or directly entered into config/db.php-in that order. Do you have conflicting database settings?Ĭraft’s config/db.php can use settings provided in your server’s environment constants, a.Double-check your settings to ensure they’re meant to be used by PHP. If Craft is running inside a container (Nitro, Docker, etc.), the settings you use to connect to the database outside the container will likely differ from those Craft uses inside the container. Did you provide settings that work from your local machine but not in Craft’s environment?.You can download, edit, and run this standalone PHP script for a quick test of your settings. If so, that could point to something Craft-specific. Can you verify the settings with a standalone test script?.If you’ve confirmed that Craft is trying to use the settings you provided, you’ll want to ensure those settings are accurate. Any missing or unexpected settings may help narrow the issue. Craft builds the DSN string regardless of how you provided your settings, and the values present here are what Craft is ultimately trying to use for the connection.
#Psequel could not connect to localhost password

Run php craft setup/db-creds and verify that your settings were saved to. Did you try re-entering the credentials?.Providing the right value for DB_HOST rather than DB_SERVER, for example, would look reasonable but still cause an error. Did you provide the correct settings during the install process?ĭouble check the setting names in addition to the values.It’s possible you’ve specified database settings Craft is unable to see. If another developer has customized config/db.php or introduced additional parts to it, you may need to follow their setup instructions instead.
#Psequel could not connect to localhost update
Generally, that file should look something like this and it may be a good idea to update yours if it doesn’t. Start by checking the contents of config/db.php, which should indicate what environment variables Craft is checking for its database connection settings. Trouble connecting to your database may result in one of the following errors:Ĭraft CMS can’t connect to the database with the credentials in config/db.phpĬraft can’t connect to the database. Troubleshooting a “Craft can’t connect” error # Craft requires a healthy database connection, and the following pointers may help identify and fix common connection issues.
