Mysql router

We are trying to setup mysql router to work with Sugar 12. We are unable to get Sugar to talk to the DB using mysql router. Has anyone gotten SugarCRM to work with MySQL router?   How does it need to be configured to work with Sugar?

Parents
No Data
Reply
  • Configuring MySQL Router to work with SugarCRM involves a few steps. Although I can provide general guidance, it's important to consult SugarCRM's official documentation or support for specific instructions tailored to your environment. Here's an overview of the process:

    1. Install MySQL Router: Begin by installing MySQL Router on a separate machine or server. Ensure that the server has access to both the SugarCRM application server and the MySQL database server.

    2. Configure MySQL Router: Create a configuration file for MySQL Router, typically named mysqlrouter.conf. In this file, you'll define the routing rules and connection details for your SugarCRM setup. Here's an example configuration:

      [DEFAULT]
      user=mysqlrouter
      key_store = path/to/mysqlrouter.key
      [sugar]
      type = read-write
      router.mode = master
      router.read_only_routing = false
      bind_address = 0.0.0.0
      bind_port = 6447
      destinations = master1:3306, master2:3306
      

      Adjust the user, key_store, bind_address, bind_port, and destinations values to match your setup. The destinations parameter should include the hostnames and port numbers of your MySQL database servers.

    3. Configure SugarCRM: In the SugarCRM configuration file (config.php), modify the database settings to point to the MySQL Router's host and port. Update the db_host_name and db_port parameters accordingly. For example:


      'db_host_name' => 'mysqlrouter-host',
      'db_port' => 6447,
      

    4. Test the Connection: Restart both the MySQL Router and the SugarCRM server. Verify that SugarCRM can connect to the database through the MySQL Router by accessing the application and performing basic database operations.
Children
No Data