Error 13 is always reported when writing files. There is no problem viewing directory permissions. Finally, find the following solutions
Write files under Linxu
If you want to use the read and write functions, you must meet the following requirements
The current user is the root user
secure_file_priv is empty, or the folder to be written is just a specific folder of secure_file_priv
The folder where the shell is written must have 777 permissions, otherwise the writing will fail
File size, must be less than max_allowd_packet to
meet the above requirements in order to be written normally
Edit the file/etc/my.cof
Add
under [mysqld]
secure_file_priv =/var/www/html
MySQL view
and then
chmod 777 /var/www/html
Finally, restart the database
Read More:
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- How to Solve MYSQL Error: Failed to start MySQL 8.0 database server
- How to Solve Mysql8 load data error
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- How to Solve mysql [Err] 1067-Invalid default value for
- How to Solve c3p0 connect mysql8.0 Error
- How to Solve MYSQL Error: No module named MySQLdb
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- How to Solve MYSQL ERROR: relation “table_name” does not exist
- How to Solve MySQL version 5.7+ Group by group error
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- Mysql Flashback Warning: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- (Fixed) workbench MySQL Error Code: 2013. Lost connection to MySQL server during query
- MYSQL 5.7 Error Code: 1290. The MySQL server is running with the –secure-file-priv option so it..
- How to Fix MySQL error 1005: can’t create table (errno: 150)
- MySQL: How to Turn on Functions
- MySQL Install Error: MySQL error 1042: Unable to connect to any of the specified MySQL hosts