sql >> Database teknologi >  >> RDS >> Mysql

sikker-fil-privat Tomt sæt

Jeg bruger Windows 10.

Tjek:

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)

Hvis du har brug for at ændre stien, skal du gøre det i my.ini fil:

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

genstart derefter MySQL:(i mit tilfælde):

V:\>net stop MySQL

V:\>net start MySQL



  1. Hvordan opretter man en MySQL-database fra dumpfil i expect/TCL-script?

  2. Simpel parametrering og trivielle planer — del 1

  3. mysql date viser resultater i dag/i går/uge

  4. PostgreSQL, tilpasset aggregat