google-templatesmysql

Understand the default MySQL configuration

The grant tables define the initial MySQL user accounts and their access privileges. The default configuration consists of two user accounts:

  • root: This user has all privileges including remote access to the database.
  • repl: Has “Replication slave” privileges which enable replication slaves to read binary log events from the master.

Check our recommendations for a production server.

MySQL version

In order to see which MySQL version your system is running, execute the following command:

$ mysqld --version

MySQL configuration file

The MySQL configuration file is located at /opt/bitnami/mysql/conf/my.cnf.

The MySQL official documentation has more details about how to configure the MySQL database.

MySQL socket

On Unix, MySQL clients can connect to the server in the local machine using an Unix socket file at /opt/bitnami/mysql/tmp/mysql.sock.

MySQL port

The default port for MySQL is 3306.

MySQL Process Identification Number

The MySQL .pid file allows other programs to find out the PID (Process Identification Number) of a running script. Find it at /opt/bitnami/mysql/tmp/mysqld.pid.

MySQL error log

The error log file contains information indicating when MySQL was started and stopped and also any critical errors that occur while the server is running. If the MySQL server notices a table that needs to be automatically checked or repaired, it writes a message to the error log. Find it at /opt/bitnami/mysql/logs/mysqld.log.