MySQL command line from Debug Mode

  • 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?

  • Ahh okay – yeah I had been eyeing the wiki article about buildroot: ([url][/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.

  • Moderator

    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!

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

  • Moderator

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