Make sure the phpbb_base_dir points to /shared/import/data.Change the table_prefix in case your phpBB forum isn’t using the default naming for database tables.You need to extract the file if you created a gzip or bzip2 compressed backup and make sure that the file is named phpbb_mysql.sql 1.3.3. Mysqldump -user root -password -result-file phpbb_mysql.sql phpbbĬopy the database dump into the /var/discourse/shared/standalone/import/data/ directory. Here are two of them:Ĭreate a database backup in phpBB’s Administration Control PanelĬonnect to the database host and create a database dump: # replace the last parameter "phpbb" with the database schema name All you need is a database dump which you can create in multiple ways. You don’t need to change any database settings if you are going to use it. The Docker container comes with a MariaDB server which is compatible with MySQL. Make sure that your MySQL server allows remote connections. Connecting to a remote databaseĬhange the database host, port, username, password and schema if you want to connect to a remote database. The settings file is well documented and comes with sensible defaults, but here are a few tips anyway: 1.3.1. nano /var/discourse/shared/standalone/import/settings.yml You can configure the importer by editing the example settings.yml file that has been copied into the import directory. It looks like this: /var/discourse/shared/standalone/import var/discourse/launcher stop appīuilding the container creates an import directory within the container’s shared directory. You can save the file, close the editor and build the container. # Uncomment these two lines if you wish to add Lets Encrypt (https) Afterwards it should look something like this: templates: cd /var/discourseĬp containers/app.yml containers/import.ymlĪdd - "templates/import/" to the list of templates. Preparing the Docker containerĬopy the container configuration file app.yml to import.yml and edit it with your favorite editor. The following steps assume that you installed Discourse on Ubuntu and that you are connected to the machine via SSH or have direct access to the machine’s terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |