Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This article is intended for users in administrator roles administrators who need to connect establish a connection for SQL Agent integration, E-Automate On-Premise integration, ConnectWise Automate On-Premise integration, and other integrations.

...

  1. Log in to Microsoft SQL Server Management Studio. 
  2. Go to Logins under the Security section.
  3. Right-click on Logins and select New Login to create a new account.
    Image RemovedSQL server new loginImage Added
  4. On the General tabClick General on the Select a page menu then, fill in the following fields. 
    1. Login name - Set a unique Login login name, for example, mspsqlagent.. Example: mspsqlagent 
    2. Select SQL Server authentication.
      1. Password - Set a password.
      2. Confirm Password - Confirm Enter the password again.
      3. Uncheck Clear the checkboxes for:
        • Enforce password policy 
        • Enforce password expiration, and
        • User must change password at next login.
          Image RemovedSQL General Login settingsImage Added
  5. Click OK.
  6. Next, click User Mapping on the Select a page menu and do the following:  Click User Mapping.
    1. In the User mapped to this login section on the right, check select the database name you want to synchronize with MSPbots, for example, . Example: Select autotest.

    2. In the Scroll down the Database role membership for section, check select db_datareader and public.

      • db_datareader - Permission This option gives permission to read data from your database.

      • public - Permission This option gives permission to allow MSPbots access to your database. 
        Warning

        Giving any account full DB database access is not recommended.

        Image Removedlogin propertiesImage Added
  7. Go back to the Select a page menu and select Click Status. 
    1. For the Under Settings on the right, select select the Grant option for Permission to connect to the database engine option, check the Grant box.
    2. For the Login option, Then select Enabled for Login.
      Image Removedlog in propertiesImage Added
  8. Click OK to save your settings.

...

  1. Use an account with root or admin privileges to log in to theMySQL Console.
    Image RemovedMYSQL consoleImage Added
  2. Enter the following SQL statement to create a new MySQL account.
    Code Block
    CREATE USER 'Login Name'@'%' IDENTIFIED BY 'Password';
    Where:
    • Login Name - The is the login name for the newly created MySQL account, for example, mspbots. 
    • % - Allow will allow remote access.
    • Password is the passcode to log the new user. 

      Example:
      Code Block
      CREATE USER 
      Password - The password used for logging in, for example, 123456.For example,
      CREATE USER
      'mspbots'@'%' IDENTIFIED BY '123456'; 
       info
      Note

      If you

      already

      have a user already but want to create a new user,

      please

      delete the previous user before creating a new

      user

      one.

      Run

      Delete by running the SQL command

      drop user 'Username'@'%';

      For example, if the username

      Example: If you want to delete

      is

      the username mspbots,

      enter:

      type drop user 'mspbots'@'%'; 

  3. Enter the following SQL statement to grant read-only permissions to MSPbots.

    Code Block
    GRANT Select ON Database Name.* TO 'Login Name'@'%';

    Where: 

    • Select - Only means read data only.
    • Database Name - The is the name of the database to which you want to sync data to MSPbots, for example, autotest. 

    • * - All means all tables or you can specify any tablestable.
    • Login Name - The is the login name set when creating the MySQL account in the previous step 2, for example, mspbots.For (Step 2).
      Example: 
      Code Block
      GRANT Select ON 
      example,
      GRANT Select ON
      autotest.* TO 'mspbots'@'%';
  4. Open the the Task Manager by typing the key combination Ctrl + Shift + Esc .
  5. Click Services.
    Image Removedtask manager servicesImage Added
  6. Find MySQL service and service and right-click on it, then select to show the options, and select Restart to restart your MySQL.
    Image Removedrestart MySQLImage Added

Related Topics 

...