Skip to main content

Remote access to MySQL with a dynamic IP blocked by csf

Comments

1 comment

  • cPanelMichael
    Hello :) The following location should be helpful if you are looking for a file to utilize for your custom bash script: /var/cpanel/databases/grants_$username.yaml
    The following entry will appear in this file, assuming the user authorizes 1.1.1.1 as an access host: GRANT USAGE ON *.* TO '$username'@'1.1.1.1' IDENTIFIED BY PASSWORD
    You could develop a script that fetches 1.1.1.1 from this entry. Thank you.
    0

Please sign in to leave a comment.