• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Using mysql in plugin sketchup

Scheduled Pinned Locked Moved Developers' Forum
7 Posts 3 Posters 350 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 4 Feb 2013, 17:06

    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
    • D Offline
      Dan Rathbun
      last edited by 4 Feb 2013, 21:28

      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 5 Feb 2013, 14:00

        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
        • D Offline
          Dan Rathbun
          last edited by 5 Feb 2013, 22:07

          @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 6 Feb 2013, 04:01

            @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 11 Feb 2013, 15:06

              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
              • D Offline
                Dan Rathbun
                last edited by 12 Feb 2013, 12:08

                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
                1 / 1
                • First post
                  1/7
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement