A centralized database stores all data in a single location, typically on a central server, making it easy to get a complete view of data but slowing down with many users accessing the same file. A distributed database splits data across multiple physical locations and processing across nodes, avoiding bottlenecks while requiring synchronization and replication across locations.