npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

om2bsql

v1.0.2

Published

SQL tools to export and import .sql files

Downloads

10

Readme

OM2B SQL


A unuseful tool to export and import .sql file with MySQL. If it is unuseful, it is essential.

  1. Installation
    1. Add MySQL binaries to PATH variable
      1. Linux (/bin/sh)
      2. Mac OS X (/bin/zsh)
      3. Windows
    2. Install OM2B SQL
  2. Usage
    1. Export
    2. Import
    3. List

1. Installation

OMB2B SQL can only be used with MySQL and if MySQL is locally installed (127.0.0.1/localhost). Be sure that the mysql and mysqldump command is in your environment variables!


1.1 Add MySQL binaries to PATH variable:

If you didn't add the MySQL binary folder to your PATH, it is not a problem:

1.1.1 Linux (/bin/sh):

shell> cd $HOME
shell> nano .basrhc

Add the following line to the end of the file:

export PATH=/folder/to/mysql/bin/:$PATH
shell> source .bashrc

1.1.2 Mac OS X (/bin/zsh):

shell> cd $HOME
shell> nano .zshrc

Add the following line to the end of the file:

export PATH=/folder/to/mysql/bin/:$PATH
shell> source .zshrc

1.1.3 Windows:

  1. On the Windows desktop, right-click My Computer.
  2. In the pop-up menu, click Properties.
  3. In the System Properties window, click the Advanced tab, and then click Environment Variables.
  4. In the System Variables window, highlight Path, and click Edit.
  5. In the Edit System Variables window, insert the cursor at the end of the Variable value field.
  6. If the last character is not a semi-color (;) add one.
  7. After the final semi-colon, type the full path to the MySQL binary folder you need to add.
Example: C:\MySQL\bin
  1. Click Ok in each open window.
  2. Execute cmd.exe or powershell.exe.

1.2 Install OM2B SQL

Execute the following command:

shell> npm install -g om2bsql

2. Usage

2.1 Export

Exporting with GUI:

shell> om2bsql export

2.2 Import

Import with GUI:

shell> om2bsql import

2.3 List

List all databases or tables in one database:

shell> om2bsql list