sql >> Database >  >> RDS >> Mysql

secure-file-priv Lege set

Ik gebruik Windows 10.

Controleer:

mysql> SELECT VERSION();
+------------+
| VERSION()  |
+------------+
| 5.7.17-log |
+------------+
1 row in set (0.00 sec)

mysql> SHOW VARIABLES LIKE 'secure_file_priv';
+------------------+--------------------------------+
| Variable_name    | Value                          |
+------------------+--------------------------------+
| secure_file_priv | V:\PATH\TO\MySQL Server\Files\ |
+------------------+--------------------------------+
1 row in set, 1 warning (0.00 sec)

mysql> SELECT `VARIABLE_VALUE`
    -> FROM `performance_schema`.`global_variables`
    -> WHERE `VARIABLE_NAME` = 'secure_file_priv';
+--------------------------------+
| VARIABLE_VALUE                 |
+--------------------------------+
| V:\PATH\TO\MySQL Server\Files\ |
+--------------------------------+
1 row in set, 1 warning (0.00 sec)

mysql> SELECT @@GLOBAL.secure_file_priv;
+--------------------------------+
| @@GLOBAL.secure_file_priv      |
+--------------------------------+
| V:\PATH\TO\MySQL Server\Files\ |
+--------------------------------+
1 row in set (0.00 sec)

Als u het pad moet wijzigen, moet u dit doen in de my.ini bestand:

# Secure File Priv.
secure-file-priv="V:/NEW/PATH/TO/MySQL Server/Files"

herstart vervolgens MySQL:(in mijn geval):

V:\>net stop MySQL

V:\>net start MySQL



  1. Veel-op-veel-hiërarchie met meerdere ouders - PHP, MySQL

  2. Regex om overeen te komen met MySQL-opmerkingen

  3. Hoe gebruikersrechten in MySQL Workbench te controleren met behulp van de GUI

  4. PHP 5:Welke DAL gebruik je?