How to access MariaDB remotely


최신 업데이트일: 2022-07-12
Applicable Products:
  • MariaDB
  • QTS 5.0 (or later)
  • MariaDB 5

    1. Using QTS to setup MariaDB 5

      1. Log in to QTS as an administrator

      2. Open the App Center

      3. Install and Open MariaDB 5

      4. Finish the MariaDB 5 Setup Wizard

        1. Click Start
        2. Choose "Create a new database" and Click next
        3. Insert Root Password (For example: youPassWot)
        4. Enable TCP/IP networking
        5. (Optional) Change the Port number
          Note: The default Port number of MariaDB 5 is 3306.
        6. Click Apply.
    2. Using SSH to allow remotely connecting

      1. SSH access the NAS

      2. Use the command to enter MariaDB monitor locally
        Note: Specify the port number after -P (for example: -P 3306)
        /usr/local/mysql/bin/mysql -u root -p -h localhost -P 3306

      3. In the MariaDB monitor, use the following command to grant the permission for remotely access.
        Note: Modify youPassWot to your Root Password
        GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youPassWot';FLUSH PRIVILEGES; 

      4. Done
    3. Try Connecting the MariaDB server remotely using MySQL Workbench

  • MariaDB 10

    1. Using QTS to setup MariaDB 10

      1. Log in to QTS as an administrator

      2. Open the App Center

      3. Install and Open MariaDB10

      4. Finish the MariaDB 10 Setup Wizard

        1. Click Start
        2. Choose "Create a new database" and Click next
        3. Insert Root Password (For example: youPassWot)
        4. Enable TCP/IP networking
        5. (Optional) Change the Port number
          Note: The default Port number of MariaDB 10 is 3307. 
        6. Click Apply.
    2. Using SSH to allow remotely connecting

      1. SSH access the NAS

      2. Use the command to enter MariaDB monitor locally
        Note: Specify the port number after -P (for example: -P 3307)
        `getcfg MariaDB10 Install_Path -f /etc/config/qpkg.conf`/bin/mysql -u root -p  -h localhost -S /var/run/mariadb10.sock -P 3307

      3. In the MariaDB monitor, use the following command to grant the permission for remotely access.
        Note: Modify youPassWot to your Root Password
        GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youPassWot';FLUSH PRIVILEGES; 

      4. Done
    3. Try Connecting the MariaDB server remotely using MySQL Workbench

 

 

 

이 기사가 도움이 되었습니까?

49% 의 사용자들이 도움이 된다고 생각할 것입니다.
피드백을 주셔서 감사드립니다.

이 기사가 어떻게 개선될 수 있을지 말해 주십시오.

추가 피드백을 제공하려면 아래에 포함하십시오.

사양 선택

      더 보기 적게 보기

      다른 국가/지역 사이트:

      open menu
      back to top