To If you need to migrate your flex.bi Enterprise instance to a different server or host there are three easy steps which you should be aware of:
...
, you need to complete 3 easy steps.
Migrating flex.bi
...
database
Before starting the migration process
please power off the, stop flex.bi
service (usually by executing " /etc/init.d/flexbi stop")First you need to do a full mysql data dump.Enterprise service. For example, if you are using
systemd
initialization script on Linux, run the following command:Code Block systemctl stop flexbi
Perform a full dump of the MySQL database. (Exchange
username
andpassword
with the actual credentials of your MySQL Server.)
ppasswordCode Block mysqldump -u username -
p'password' --all-databases > /home/flexbi/flexbi_mysqldump.sql
- Next using rsync (or other methods) you should transfer the mysqldump
Transfer the mysql dump file from the old server
, e.g.:to the new one. For example, you can use rsync.
To do this, run this command on the old server. (Exchange thenew_server_ip
with the actual IP of the new server.)
root@192.168.49.1:Code Block rsync -avz
Launch this command/home/flexbi/flexbi_mysqldump.sql root@new_server_ip:/home/flexbi/flexbi_mysqldump.sql
Import the transferred mysql dump file into the MySQL server on the new server.
Change 192.168.49.1 to your old servers ip address.Lastly import the transferred mysqldump file
(Exchange
username
andpassword
with the actual credentials of your MySQL Server.)
ppasswordCode Block mysql -u 'username' -
p'password' < /home/flexbi/flexbi_mysqldump.sql
Note |
---|
It is advised to use a full mysql dump when exporting and importing data. The target |
...
MySQL Server should be empty and must not contain any databases which share names with your original flex.bi |
...
MySQL Server database. |
Info |
---|
More about mysqldump and actions associated - https://dev.mysql.com/doc/refman/5.5/en/mysqldump.html |
Migrating flex.bi Enterprise files and
...
import data
To migrate all of your files to your new
locationserver you should be able to just copy them from one server to another using rsync.
To do this, run this command on the old server. (Exchange thenew_server_ip
with the actual IP of the new server.)
root@192.168.49.1:Code Block rsync -avz
/flexbi/* root@new_server_ip:/flexbi/
Launch this command on the new server. Change 192.168.49.1 to your old servers ip address.
Adjusting flex.bi Enterprise configuration files
If you have changed MySQL database user or password used for flex.bi, then make the necessary adjustments in the
/flexbi_private/config/database.toml
file.Code Block adapter = "mysql" database = "flexbi" host = "localhost" password = "password" username = "username"
If
your database core username or password has changed please edit this file accordingly.Flexbi configuration file -the hostname or internet protocol used for flex.bi Enterprise server has changed, adjust the following part of the
or /flexbi_private/config/flexbi.toml./flexbi_private/config/eazybi.toml
Find these lines and change accordingly if your hostname or security measures have changed.
file.
Do not forget:Code Block [default_url_options] host = "flex.bi" #port = 8090 protocol = "https"
haveInfo If you
servingare using a web server
addmaking redirects to
to it.To check if your smtpthe flex.bi
Enterprise server, adjust the configuration of the web server
instanceInfo Check if your SMTP email server will accept emails sent from the new flex.bi Enterprise server.