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!
    🚨 Skimp | 25% Off until March 30 Buy Now

    MySQL connexion

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 434 Views 2 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.
    • inteloideI Offline
      inteloide
      last edited by

      Hello !

      Is there any way to link Sketchup to a MySQL database in pure ruby ?

      I look for in history of posts, I only see answers from years now, and I guess new version of Sketchup (with ruby core update) can do it more easily.

      I know that I can link through javascript/php code. I wonder if a pure ruby code can be simply written to do so.

      This may required installation of Gem and DevKit, but please if somebody can explain step by step how to proceed, it would help me a lot !

      Thank you for your help.
      Best regards.
      Inteloide

      Humanity will do a huge step when the IT professionals will understand that computers are tools...

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

        Whoops,.. (3) above was incorrect.

        Should be Gem::install "dbi"
        ... not "ruby-dbi"

        [Corrected that post.]

        Also.. have sent corrected URLs to the website hosting the DBI tutorial:
        http://www.tutorialspoint.com/ruby/ruby_database_access.htm

        (Received a reply back promising corrections.)

        I'm not here much anymore.

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

          @inteloide said:

          Is there any way to link Sketchup to a MySQL database in pure ruby ?

          (1) I believe, You or whomever runs the Server still need to install MySQL:
          http://dev.mysql.com/downloads/windows/installer/

          From Ruby Console:

          (2) Gem::install "ruby-mysql"
          (Pure-Ruby edition - C edition is "mysql" gem.)
          source: https://github.com/tmtm/ruby-mysql
          gem: https://rubygems.org/gems/ruby-mysql
          doc: http://www.rubydoc.info/gems/mysql/

          (3) Gem::install "dbi"
          gem: https://rubygems.org/gems/dbi
          doc: http://www.rubydoc.info/gems/dbi

          (4) Gem::install "ruby-odbc"
          gem: https://rubygems.org/gems/ruby-odbc
          doc: http://www.rubydoc.info/gems/ruby-odbc

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better πŸ’—

          Register Login
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement