Connect to MySQL

You can connect to the database from the same computer where it is installed with the mysql client tool.

$ mysql -u root -h HOSTNAME -p

Replace the HOSTNAME placeholder with the database server hostname. You will be prompted to enter the root user password. This is the same password entered during the server deployment process.

WordPress users can also obtain the database hostname by executing the following command:

$ sudo cat /opt/bitnami/wordpress/wp-config.php | grep 'DB_HOST'
Last modification June 8, 2020