sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Using mysql in plugin sketchup

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 392 Views 3 Watching
    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 Offline
      tom40
      last edited by

      Hello, I'm new in SketchUcation, I want acceded to a mysql database in a plugin.
      How to install mysql on ruby sketchup?

      Thanks.

      Thomas.

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Search: http://sketchucation.com/forums/search.php?st=0&sk=t&sd=d&sr=posts&keywords=mySQL&fid%5B%5D=180

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • T Offline
          tom40
          last edited by

          Thank you.
          I found yours !Loadpaths.rb used ruby script for windows but I can not install mysql on ruby 1.8.6 (gem install mysql) I get an error "mysql Requires Ruby version> = 1.8.7 ".
          I am forced to use the same version (1.8.6) that sketchup?

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            @tom40 said:

            AM I forced to use the same version (1.8.6) that sketchup comes with ?

            It is a good idea, but you can load another Ruby version easily on PC. (It's a bit more technical on Mac.)

            See: Ruby Interpreter DLLs (Win32)
            But you wouild also want to find a 1.8.7 full install to go with this.

            However... if you are writing a plugin for distribution, do not expect non-technical users to run SketchUp with a 1.8.7 Ruby.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • H Offline
              honkinberry
              last edited by

              @unknownuser said:

              I want acceded to a mysql database in a plugin.

              I have found that it is not worth the hassle. We instead access all such data through a WebDialog and data located remotely.

              --J

              1 Reply Last reply Reply Quote 0
              • T Offline
                tom40
                last edited by

                i am writing a plugin for distribution,
                do you think it is possible to import a component from a database?

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  A component is a skp file that is loaded into SketchUp, from either a local directory (treated as a library,) or from a remote website.

                  Encapsulting skp files within another file container just adds unneeded complexity.

                  If you wish you CAN have a database that keeps track of the directory of components.

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement