Skip to main content

MariaDB file permission error after using Transfer Tool

Comments

3 comments

  • SamuelM
    Hello @billmcollam Thank you for contacting cPanel! FILE is not a supported privilege for cPanel database users. The supported privileges for cPanel database users are:
    ALTER ALTER ROUTINE
    CREATE CREATE ROUTINE
    CREATE TEMPORARY TABLES CREATE VIEW
    DELETE DROP
    EVENT EXECUTE
    INDEX INSERT
    LOCK TABLES REFERENCES
    SELECT SHOW VIEW
    TRIGGER UPDATE
    FILE is indeed a global privilege, but cPanel doesn't allow users to assign this privilege, which is the reason the Transfer Tool returned the error message. With that said, you are free to manually assign the FILE privilege to individual cPanel database users, but we cannot guarantee they will work properly. In this case however, the Errcode: 13 "Permission denied"
    error you received is to be expected. I reproduced this error on my test server as well: MariaDB [samsacco_test]> SELECT * FROM test INTO OUTFILE '/tmp/test.txt'; Query OK, 1 row affected (0.011 sec) MariaDB [samsacco_test]> SELECT * FROM test INTO OUTFILE '/home/samsaccount/test.txt'; ERROR 1 (HY000): Can't create/write to file '/home/samsaccount/test.txt' (Errcode: 13 "Permission denied")
    I was able to use the SELECT ... INTO OUTFILE
    statement to successfully export a selection to a file in the /tmp directory, but not the cPanel user's home directory. As noted in the MySQL
    0
  • billmcollam
    No questions. You've explained why the transfer tool threw off the warnings. I can't figure out why mysql can write to the user directory in production server but not in the new server with identical grants and directory permissions. But I take the point that isnt a cPanel issue. I'll follow it up elsewhere. Thanks.
    0
  • hmaddy
    Check mariaDB versions of both servers.
    0

Please sign in to leave a comment.