Question
How to edit the MySQL/MariaDB configuration (my.cnf) file?
Answer
WHM
- Login to WHM as the root user.
- Access Home / SQL Services / Edit SQL Configuration
- Using this tool, change the configuration that you require.
- Use the Submit button at the bottom of the page to confirm your changes, and apply the configuration.
Note: Not all options are exposed in this interface, and more advanced MySQL configuration will require direct modification via the command-line.
Command-Line
- Login as
rootusing SSH, or the Terminal in WHM. Edit the
/etc/my.cnffile using your preferred command-line editor:# nano /etc/my.cnf
After changes have been made, restart the service:
# /scripts/restartsrv_mysql
Comments
0 comments
Article is closed for comments.