• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    MySQL command line from Debug Mode

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    3.0k
    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
      dvlsg
      last edited by

      So I’m not sure this is a “problem”, per se, but it’s something I’ve been trying to get working that’s giving me a problem.

      I would like to have access to running a MySQL command line query from Debug Mode. I’ve been fiddling a bit with mounting the init.gz, expanding it, and trying to copy over some of the MySQL files to the same locations in the expanded init (/usr/bin/mysql on the host to /usr/bin/mysql on the expanded init). This is in the correct location on Debug Mode, but when I try running mysql, I receive this error: “/bin/sh: mysql: not found”. Launching #!/usr/bin/mysql seems to technically run, but doesn’t return anything (not even an error). I’m starting to wonder if I didn’t include all of the necessary files.

      So I guess my question is this - how would “install” MySQL into the init.gz (or any command, for that matter - like whereis) so I can run it from Debug Mode?

      1 Reply Last reply Reply Quote 0
      • C
        chad-bisd Moderator
        last edited by

        I believe IBM has a great tutorial on their website about building init files.

        [url]http://www.ibm.com/developerworks/linux/library/l-initrd/index.html[/url]


        If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

        1 Reply Last reply Reply Quote 0
        • D
          dvlsg
          last edited by

          Oh that’s interesting. Thanks for the link! That’ll be a good read.

          1 Reply Last reply Reply Quote 0
          • C
            chad-bisd Moderator
            last edited by

            When you’re done with that checkout buildroot utility in fog. I think there is a wiki article in it now too.

            edit: dang smartphone outsmarted me and auto-corrected some of my posts. If my replies don’t make sense, I blame my phone!


            If you would like to make a donation to the Fog project, please do so [U][COLOR=#0000ff][URL='http://sourceforge.net/dona…

            1 Reply Last reply Reply Quote 0
            • D
              dvlsg
              last edited by

              Ahh okay – yeah I had been eyeing the wiki article about buildroot: ([url]http://www.fogproject.org/wiki/index.php/Build_FOG_file_system_with_BuildRoot_-_init.gz[/url])

              I was holding off on diving in to that, since I was hoping there would be a way to mount the init.gz, import the installation (somehow or another), and gzip init back up without having to rebuild the whole thing. But if there’s no other way, then that’s what I’ll do.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              155

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project