Home  >  Article  >  Topics  >  How to solve the problem that the database prompts that it only has read-only permissions and cannot be operated

How to solve the problem that the database prompts that it only has read-only permissions and cannot be operated

藏色散人
藏色散人forward
2020-12-11 15:56:243245browse

The following tutorial column of Pagoda will introduce to you the solution to the problem that the database prompts that it only has read-only permissions and cannot be operated. I hope it will be helpful to friends in need!

How to solve the problem that the database prompts that it only has read-only permissions and cannot be operated

Many people like to directly upload data files to the database storage directory through ftp or panel to implement the migration and import function. Although it is not impossible, the lack of permission adjustment results in the database being read-only.

Permissions need to be modified in time for normal use

First change the directory permissions, select the storage directory of the database and adjust it to belong to the mysql user, 700 permissions

How to solve the problem that the database prompts that it only has read-only permissions and cannot be operated

After the adjustment, enter the directory and click the small box in the upper right corner, select all files, and adjust them to belong to the mysql user with 660 permissions

How to solve the problem that the database prompts that it only has read-only permissions and cannot be operated

##After the modification is completed, restart mysql

The above is the detailed content of How to solve the problem that the database prompts that it only has read-only permissions and cannot be operated. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:bt.cn. If there is any infringement, please contact admin@php.cn delete