Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Mysql Server

    Scheduled Pinned Locked Moved Captive Portal
    6 Posts 2 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U
      ut12345
      last edited by

      Hi,

      Scenario-: I'm using pfsense version 2.1 and Mysql server 5.5. Let us assume two pfsense box as pfsense A & pfsense B.

      Problem-: I have successfully installed pfsense & also installed Mysql server version 5.5 at two different pfsense box. For some purpose, I want to access the Mysql database of pfsense A by using pfsense B.

      Thanks

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        Please,
        The begin with : do NOT install something like MySQL on a firewall.
        I have to say this because you made it very clear that you do not know how to setup a 'MySQL' installation.

        According to the MySQL manual ("the 2 page version") every installation of mySQL only listens to 'localhost' or 12700.0.1 or :11 by default.
        You should 'RTFM' and change /etc/mysql/my.cnf (typically) so you can access MySQL from the outside of the server (which is a firewall).

        Btw : This has nothing to do with pfSense.
        Btw : This is against MySQL recommendations.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • U
          ut12345
          last edited by

          @Gertjan:

          Hi,

          Please,
          The begin with : do NOT install something like MySQL on a firewall.
          I have to say this because you made it very clear that you do not know how to setup a 'MySQL' installation.

          According to the MySQL manual ("the 2 page version") every installation of mySQL only listens to 'localhost' or 12700.0.1 or :11 by default.
          You should 'RTFM' and change /etc/mysql/my.cnf (typically) so you can access MySQL from the outside of the server (which is a firewall).

          Btw : This has nothing to do with pfSense.
          Btw : This is against MySQL recommendations.

          sorry I did not get your explanation according to my question.I have not found any my.cnf file at that location (/etc/mysql/my.cnf). Can you please explain it in more detail. I'm new to using pfsense.

          Thanks

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            @ut12345:

            ….. I'm new to using pfsense.

            pfSense is NOT the issue neither related to the question.

            "pfSense" uses an OS : FreeBSD. Evey OS has it's own places where it stores executables and config files.
            So, the "my.cnf", if it isn't here  /etc/mysql/my.cnf (like a Debian OS system, there where a MySQL belongs) it's elsewhere.
            The fact that you can't find the file my.cnf is the problem (tip : you saw this thread :
            [HOWTO] Captive portal + FreeRADIUS + local MySQL user friendly single step ? You should read it. It talks about MySQL and FreeBSD ….. so .... ;)).

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • U
              ut12345
              last edited by

              @Gertjan:

              @ut12345:

              ….. I'm new to using pfsense.

              pfSense is NOT the issue neither related to the question.

              "pfSense" uses an OS : FreeBSD. Evey OS has it's own places where it stores executables and config files.
              So, the "my.cnf", if it isn't here  /etc/mysql/my.cnf (like a Debian OS system, there where a MySQL belongs) it's elsewhere.
              The fact that you can't find the file my.cnf is the problem (tip : you saw this thread :
              [HOWTO] Captive portal + FreeRADIUS + local MySQL user friendly single step ? You should read it. It talks about MySQL and FreeBSD ….. so .... ;)).

              I know this process  and I have sucessfully installed this process but my question is  that below:

              Scenario-: I'm using pfsense version 2.1 and Mysql server 5.5. Let us assume two pfsense box as pfsense A & pfsense B.

              Problem-: I have successfully installed pfsense & also installed Mysql server version 5.5 at two different pfsense box. For some purpose, I want to access the Mysql database of pfsense A by using pfsense B.

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                Modify the 'my.cnf' (de main MySQL config file) so it accepts not only connection from localhost (127.0.0.1) but also the 'external' IP  that the other pfSense would use to connect to the server.
                This is well described in the MySQL doc.

                You need to locate the file, and change it.
                Restart MySQL.
                [ check if the firewall on the IP/NIC isn't blocking incoming connections on the MySQL port ]
                Done.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.