0

How do I set file privilege for user of MySQL database in cpanel. I have tried

USE mysql;
UPDATE user SET File_priv = 'Y' WHERE User = 'db_user';
FLUSH PRIVILEGES;

With no success I have tried the code inside the database

CharlieT
  • 373
  • 4
  • 26

1 Answers1

1

By default Cpanel put on my.cnf local-infile=0

You must put on /etc/my.cnf

local-infile=1

After restart mysql

abkrim
  • 3,512
  • 7
  • 43
  • 69