Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. Mysql ssl error and auto-increment not working

Mysql ssl error and auto-increment not working

Scheduled Pinned Locked Moved LAMP
7 Posts 4 Posters 1.5k Views 4 Watching
  • 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.
  • C Offline
    C Offline
    CarbonBee
    wrote on last edited by
    #1

    Hi,

    I have a strange behaviour with mysql in a Lamp container.
    Here is the backgroud:

    • I want to have this project https://partkeepr.org/ on my 2 servers
    • I requires php <= 7.1
    • I use lamp v1.4.0 https://git.cloudron.io/cloudron/lamp-app/-/tags/v1.4.0

    On one of my server (cloudron v6.0.1) it works fine.
    But on the other one (cloudron v6.2.8), I have many problems :

    • In the terminal, when I try to connect to mysql CLI, I've got the error ERROR 2026 (HY000): SSL connection error: unknown error number so I have to use phpmyadmin to make database manipulation,
    • When I insert a line in a table, the new id (an AUTOINCREMENT field) is correctly incremented, but in the information_schema fields, neither table_rows nor auto_increment etc... fields are modified. I have a trigger on before insert which needs the auto_increment value.

    I have never seen such a behaviour and don't really know what to do.

    Does anyone has any idea?

    nebulonN M 2 Replies Last reply
    0
    • C CarbonBee

      Hi,

      I have a strange behaviour with mysql in a Lamp container.
      Here is the backgroud:

      • I want to have this project https://partkeepr.org/ on my 2 servers
      • I requires php <= 7.1
      • I use lamp v1.4.0 https://git.cloudron.io/cloudron/lamp-app/-/tags/v1.4.0

      On one of my server (cloudron v6.0.1) it works fine.
      But on the other one (cloudron v6.2.8), I have many problems :

      • In the terminal, when I try to connect to mysql CLI, I've got the error ERROR 2026 (HY000): SSL connection error: unknown error number so I have to use phpmyadmin to make database manipulation,
      • When I insert a line in a table, the new id (an AUTOINCREMENT field) is correctly incremented, but in the information_schema fields, neither table_rows nor auto_increment etc... fields are modified. I have a trigger on before insert which needs the auto_increment value.

      I have never seen such a behaviour and don't really know what to do.

      Does anyone has any idea?

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      @carbonbee not sure what that issue is. Maybe since you use some older app package, this is caused by mysql client/server version mismatch?

      Anyone else here has seen this?

      1 Reply Last reply
      0
      • C CarbonBee

        Hi,

        I have a strange behaviour with mysql in a Lamp container.
        Here is the backgroud:

        • I want to have this project https://partkeepr.org/ on my 2 servers
        • I requires php <= 7.1
        • I use lamp v1.4.0 https://git.cloudron.io/cloudron/lamp-app/-/tags/v1.4.0

        On one of my server (cloudron v6.0.1) it works fine.
        But on the other one (cloudron v6.2.8), I have many problems :

        • In the terminal, when I try to connect to mysql CLI, I've got the error ERROR 2026 (HY000): SSL connection error: unknown error number so I have to use phpmyadmin to make database manipulation,
        • When I insert a line in a table, the new id (an AUTOINCREMENT field) is correctly incremented, but in the information_schema fields, neither table_rows nor auto_increment etc... fields are modified. I have a trigger on before insert which needs the auto_increment value.

        I have never seen such a behaviour and don't really know what to do.

        Does anyone has any idea?

        M Offline
        M Offline
        msbt
        App Dev
        wrote on last edited by
        #3

        @carbonbee at least for the first thing I've had a similar issue on a new cloudron and old LAMP, @girish suggested to just use another apps' terminal to connect to the db and do you alterations there.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          Right, please check the post that @msbt suggested. The main difference is that Cloudron 6.2 has MySQL 8 whereas Cloudron 6.0 is on MySQL 5.6. To connect to MySQL 8, you need the latest CLI tool because they have changed how authentication works.

          C 1 Reply Last reply
          0
          • girishG girish

            Right, please check the post that @msbt suggested. The main difference is that Cloudron 6.2 has MySQL 8 whereas Cloudron 6.0 is on MySQL 5.6. To connect to MySQL 8, you need the latest CLI tool because they have changed how authentication works.

            C Offline
            C Offline
            CarbonBee
            wrote on last edited by
            #5

            @girish @msbt Thanks! This helped greatly.
            But I still have my increment issue.
            In the CLI, I can do ANALYZE TABLE <my_table> after an insert and it updates the information_schema fields (TABLE_ROWS, AUTO_INCREMENT,...).
            But when I insert again, nothing changes. I have to always make the ANALYZE TABLE to update the info.
            Have you ever encounter this?

            C 1 Reply Last reply
            0
            • C CarbonBee

              @girish @msbt Thanks! This helped greatly.
              But I still have my increment issue.
              In the CLI, I can do ANALYZE TABLE <my_table> after an insert and it updates the information_schema fields (TABLE_ROWS, AUTO_INCREMENT,...).
              But when I insert again, nothing changes. I have to always make the ANALYZE TABLE to update the info.
              Have you ever encounter this?

              C Offline
              C Offline
              CarbonBee
              wrote on last edited by
              #6

              Ok, I managed to make the application working from a backup.
              The issue appears as soon as I connect to phpmyadmin.
              I don't really understand why and what happens, but as long as I stay away from phpmyadmin, everything works fine.

              girishG 1 Reply Last reply
              1
              • C CarbonBee

                Ok, I managed to make the application working from a backup.
                The issue appears as soon as I connect to phpmyadmin.
                I don't really understand why and what happens, but as long as I stay away from phpmyadmin, everything works fine.

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @carbonbee don't think it matters but I will push an update to phpMyAdmin 5.1.0 - https://www.phpmyadmin.net/news/2021/2/24/phpmyadmin-510-released/

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search