Start/enable rvice and open Setting up Mattermost Note: Be sure to replace mmuser_password with the password of the user. Unix socket: postgres:/// mattermostdb?host=/run/postgresql make sure there are 3 slashes after postgres:, mattermostdb is the name of the database and /run/postgresql is the directory containing the Unix socket.TCP socket: postgres:// mmuser: mattermostdb?sslmode=disable&connect_timeout=10.For MySQL, set it to mmuser: mattermostdb?charset=utf8mb4,utf8.The DriverName setting: mysql for MySQL and postgres for PostgreSQL. There are two settings you need to adapt to your database. Mattermost is configured in /etc/webapps/mattermost/config.json. $ sudo -u mattermost psql -dbname=mattermostdb -username=mattermost Configuring Mattermost Setup the Unix socket by adding the following line to /var/lib/postgres/data/pg_hba.conf: $ sudo -u postgres createdb -O mattermost mattermostdbĥ. Create the Mattermost database, owned by mattermost user: Create the new user while connecting to the server as postgres user:Ĥ. $ psql -host= ip_address -dbname=mattermostdb -username=mmuser -password With Unix socketģ. PostgreSQL#Configure PostgreSQL to be accessible from remote hosts $ sudo -u postgres createdb -O mmuser mattermostdbĥ. Create the Mattermost database, owned by mmuser user: Create the new user while connecting to the server as postgres user (you will be prompted for a password for the new user):Ĥ. Note: When Mattermost and PostgreSQL are on the same machine, you should use a Unix socket, as it is faster and more secure. Choose between TCP or UNIX Socket, and jump to the corresponding section. MySQL/MariaDB $ mysql -u root -p CREATE DATABASE mattermostdb ĬREATE USER mmuser IDENTIFIED BY 'mmuser_password' Ģ. If you plan to run it on the same machine, first install either MySQL or PostgreSQL as database.įollow one of the following sections and then proceed with #Configuring Mattermost.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |