Skip to main content

change cpanel /whm database port 3306

Comments

5 comments

  • ffeingol
    You'd change it in /etc/my.cnf In the [mysqld] section you'd either add a port=#### or change the port number if it's there. MySQL would need to be restarted after the change. Here is the
    0
  • Quintanilha-RJ
    It's happening that I use the MariaDB database and I'm having problems these last few days that my server is dropping the database every hour, I don't know what could be happening. Is there any way for me to find out the cause of this problem.
    0
  • ffeingol
    I'm not 100% sure it would be the same log file, but I'd check /var/log/mysqld.log and see if there is anything useful there. You may need to check the MariaDB log file name, but I believe cPanel sets them to the same name.
    0
  • Quintanilha-RJ
    I found three mysql log files but they are blank, and my /etc/my.cnf file is as follows
    0
  • cPRex Jurassic Moderator
    You'd want to check the log file listed on the "log-error" line to view the main log to see if that provides any clues. As others have mentioned, unless you have specifically opened port 3306 externally, an external attack is likely not the issue you're experiencing.
    0

Please sign in to leave a comment.