Changing databases for Pleasant Password Server
See why customers enjoy using Pleasant Password Server with a KeePass client
By default, Pleasant Password Server installs quickly with a securely encrypted SQLite database on the server machine.
A simple, automated database migration tool is included. By using this powerful, built-in "Restore from Backup" functionality, it's possible to convert and migrate all the Password Server data to the new database location (see Items included in database).
Have Questions? Contact Us
The main tasks involved in switching the database for Password Server is as follows:
- Create a new database instance
- Switch the database connection string to the new database
- Use the built-in "Restore from Backup," which converts and re-populates your data into the new database.
- Configure Your Database (section below)
- Supported Databases
- Database Encryption
- Backup your Connection String
- Change the Service Account User
- Configure Your Database (Steps for changing your database)
- Previous Versions Notes
- Database Encryption - select an encryption method or resource
- Cloud Database Providers - can provide additional features such as database scaling, encryption, etc.
- Supported Databases - database size recommendations
- When to Upgrade the Database - performance considerations
When changing to a new database, ensure that the database is secured and review these steps to Encrypt your Database.
Ensure you have created a backup:
To change or move the database used by Password Server, follow these steps:
Before starting: make sure you've read sections above:
Create a Backup,
Encrypt your DB (above).
Change the database:
Open the Service Configuration Utility
Change the Service Account User for Pleasant Password Server:
- Note: This particular setting will not persist in an upgrade! and will need to be updated. Please keep this step in your upgrade plans.
This step can be skipped if using SQL Authentication (connection string has username/password).
Start the Password Server service. This will automatically create all the tables in the database and set up the default admin user.
Login with your browser to your server.
(optional) Restore all your data from backup:
Now you can migrate all your data (folders, entries, application settings, etc.) that you had in the previous database type.
Use the database backup and restore to: Restore from backup (Enterprise edition)
Double-check license activation.
Restart your service/site.
See the Troubleshooting section below if necessary.
These settings will persist through future updates of Pleasant Password Server (except step 6).
Database Security Hardening
Additional security and maintenance steps can be further configured. Comprehensive and exhaustive details found by requesting the benchmarks found here:
Some databases provided by third parties already include encryption, hardening, and additional security features.
If you run into any issues with your chosen database please check the items below:
Ensure your Firewall or Anti-Virus are not interfering with network traffic
- Try Setup without encryption requirements / certificates to start, then add these later
Increase logging details for the Password Server. Restart the service, and review the log outputs.
- Specific setup checks for MS-SQL:
- Ensure the Authentication mode is properly set:
- SQL authentication (userid/password), requires enabling Mixed Mode or SQL authentication (under the Instance properties security)
- Change setting then restart the database
- Start the services for SQL Server (using services.msc):
- SQL Server
- SQL Server requires that TCP/IP connectivity is turned on, and by default the port is 1433
- Otherwise the ERROR: "The System cannot find the file specified." Problem creating a connection to the SQL Server Database.
- We can check listening ports with this command:
- netstat -ano | find ":1433"
- Open SQL Server Configuration Manager (compmgmt.msc) > Click SQL Server Network Configuration:
- Set TCP/IP = Enabled
- Set TCP Port = 1433
- Restart the website
Detailed MS-SQL troubleshooting: see Connectivity issues
- Ensure the Authentication mode is properly set:
- Problem 1:
- Error: "The target principal name is incorrect" (found in EventViewer / Log files)
Add "TrustServerCertificate=true" to your Connection String
- Problem 2:
- Service fails to start, after an upgrade
- Error in Weblogs file:
- Cannot open database "CustomerDatabase" requested by the login. The login failed.
- Login failed for user 'DOMAIN\USERNAME'.
- The database was changed to MS-SQL, and the Service User Account was switched.
- On Upgrade, this information is lost, and needs to be re-applied.
- Close the upgrade’s “Starting the service” window
Open Services.msc, make the change, and re-start
- Problem 3:
- Empty database; no tables
- Double-check the security permissions for the user
- Double-check that the service account in format: Domain\UserName
- Note: Pleasant Password Server does NOT currently support authentication with a UPN (User Principal Name) format, i.e. username@domain.
If you continue to experience problems, please don't hesitate to send us your detailed log files (at Contact Us), and let us know your situation.
Version 3.5.0 or Older