This paper discusses a class of inhomogeneous fractional differential equations with boundary conditions. At the same time, we apply it to the database network encryption model. In this paper, the fractional differential equation algorithm segments the big data in the cloud environment, and the homomorphic algorithm is used for encryption. We encrypt the algorithms and store them in the database, respectively. When the model is queried, the corresponding ciphertext data in the database can be matched according to the type of query statement. The experimental simulation realizes the information retrieval and statistics in the case of full ciphertext on the server-side.