• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
FusionAuth
  • Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login

Mysql on ubuntu

Scheduled Pinned Locked Moved
General Discussion
2
4
806
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.
  • T
    truearrowsoftware
    last edited by 24 Feb 2024, 09:45

    I download the FusionAuth on my windows machine and after some stuggle I get it working with MySql database. Then I download fresh copy of FA (just app no docker or anything) and upload to my ubuntu server. copy the mySql Connecotr 8.0.33 editon to lib folder as document says.

    but it is not connecting to database. I am stuck at installation screen. where I only get it working once with my Root password to create database, but it create half database before it lost connection. So I create blank database and username password and try to proceed. it is not connecting..

    Now I copy my Windows database to server and give username password to in .properties file but it is not connecting and redirecting me to installation screen. where it is giving error as

    The user for the username you provided was either created or already existed but could not be granted access to the database. The error from the database was [No suitable driver found for jdbc:mysql://10.131.37.113:3306/mysql?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true].

    My server is on same LAN in data center and my php apps are connecting file with give authentication but not FA.

    D 1 Reply Last reply 26 Feb 2024, 15:48 Reply Quote 1
    • D
      dan @truearrowsoftware
      last edited by 26 Feb 2024, 15:48

      @truearrowsoftware Hmmm. Based on what you've said, this seems like a JDBC connection error, because:

      • php apps can connect
      • FusionAuth has trouble connecting (you mentioned that two times)

      When I'm troubleshooting issues like this, I like to isolate things. Is there any way you can write a small java program to make sure it can connect to your mysql database using the connection string?

      Another alternative would be to run the database SQL against mysql manually. You can find it here: https://fusionauth.io/direct-download Then FusionAuth won't have to create any tables or anything.

      --
      FusionAuth - Auth for devs, built by devs.
      https://fusionauth.io

      T 1 Reply Last reply 27 Feb 2024, 04:28 Reply Quote 0
      • T
        truearrowsoftware @dan
        last edited by 27 Feb 2024, 04:28

        @dan Thanks for reply. I manage to solve it but not fully. I was using Direct Download version first and that is where it was not connecting. Then I use DEbian installation method and it connect using same Connector file I use for direct download to mysql 5.7 (but it doesn't connect to Mysql 8.0.32 server )

        It works fine except that now SQL query it runs for application and Tenant page has error I create issue in Github here: https://github.com/FusionAuth/fusionauth-issues/issues/2658 Not sure it is related (as in some installation error occur ) or it is just programming bug.

        D 1 Reply Last reply 6 Mar 2024, 20:37 Reply Quote 0
        • D
          dan @truearrowsoftware
          last edited by 6 Mar 2024, 20:37

          @truearrowsoftware Weird.

          We won't fix that bug because we don't support mysql 5.7 any more (per https://fusionauth.io/docs/get-started/download-and-install/system-requirements#database ).

          When you try to connect to mysql8, do you see any log messages in the startup screen or under /usr/local/fusionauth that seem relevant to share?

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          • First post
            Last post