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

No suitable driver found for jdbc:mysql://localhost:3306/login?...

Scheduled Pinned Locked Moved
General Discussion
1
11
7.3k
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.
  • D
    dan
    last edited by 4 Dec 2020, 15:47

    Hiya,

    Does your server have access to the internet? Due to licensing issues, we don't ship the mysql driver, but instead download it at first use. See the "Network Access" section here: https://fusionauth.io/docs/v1/tech/installation-guide/system-requirements/

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

    1 Reply Last reply Reply Quote 0
    • P
      postmaster
      last edited by 6 Dec 2020, 03:05

      I just tested this on a fresh virtual machine that has full internet access and this exact same error is occurring.
      Tables were created successfully but fusionauth cannot access the db.
      https://hastebin.com/palixalife.yaml journalctl logs included

      1 Reply Last reply Reply Quote 0
      • D
        dan
        last edited by 6 Dec 2020, 03:22

        Thanks for the info, appreciate it!

        Which package are you using to install FusionAuth? I'm guessing the RPM, but can you confirm, please?

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

        1 Reply Last reply Reply Quote 0
        • P
          postmaster
          last edited by 6 Dec 2020, 03:26

          I'm using the deb package. Fresh Ubuntu 20.04 install

          1 Reply Last reply Reply Quote 0
          • D
            dan
            last edited by 7 Dec 2020, 21:07

            OK, I tried to recreate and couldn't.

            How did you install the .deb file? I used dpkg -i <path to deb file>.

            What kind of server were you running on? I tried to use a t2.micro on AWS and it had some issues, I think because it was undersized for running fusionauth. On a t3.large it was fine.

            I used mysql 8, as installed via apt-get. I also tried with percona 5.7, installed per these instructions: https://www.percona.com/doc/percona-server/5.7/installation/apt_repo.html

            So I think I'd need a bit more details to track down your issue.

            • does it occur with mysql 8?
            • does it occur when you install via the zip file?

            Or if you can give me the exact steps you are doing, I can try to replicate that way.

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

            1 Reply Last reply Reply Quote 0
            • P
              postmaster
              last edited by 8 Dec 2020, 00:56

              I used the install script found at https://fusionauth.io/download/ on a HyperV vm with 2gb of ram allocated.
              The mysql server's version is Server version: 5.7.32-0ubuntu0.18.04.1 - (Ubuntu) on a separate host.
              I'll reinstall the vm and try with mysql8 and the zip files.

              1 Reply Last reply Reply Quote 1
              • M
                muralimaxk
                last edited by 21 Jan 2021, 08:31

                • No suitable driver found for Jdbc:Mysql://localhost:3306
                1 Reply Last reply Reply Quote 0
                • D
                  dan
                  last edited by 22 Jan 2021, 22:11

                  @postmaster did you solve the issue?

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

                  1 Reply Last reply Reply Quote 0
                  • D
                    dan
                    last edited by 22 Jan 2021, 22:12

                    @muralimaxk

                    I'm not sure I understand what you are saying. Can you give me a bit more detail?

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

                    1 Reply Last reply Reply Quote 0
                    • M
                      marktoddy
                      last edited by 21 Jun 2021, 06:38

                      The reason you got this error is because you forgot to register your java mysql jdbc driver with the application.

                      Should be like this:

                      Class.forName("com.mysql.jdbc.Driver");
                      

                      This forces the driver to register itself, so that Java knows how to handle those database connection strings.

                      You'll have to read the manual on your specific mysql jdbc driver to find the exact string to place inside the the Class.forName("...") parameter.

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