sql >> Databasteknik >  >> RDS >> Mysql

secure-file-priv Tom set

Jag använder Windows 10.

Kontrollera:

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)

Om du behöver ändra sökvägen måste du göra det i my.ini fil:

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

starta sedan om MySQL:(i mitt fall):

V:\>net stop MySQL

V:\>net start MySQL



  1. ER_HOST_NOT_PRIVILEGED - docker-behållaren kan inte ansluta till mariadb

  2. Seam @Transactional annotation fungerar inte?

  3. Hur kan jag få tabellnamnet i en PostgreSQL triggerfunktion?

  4. Returnerar en Min() och ett annat fält?