Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Asynchronous MySQL binding for Node.js
JavaScript C++ Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
src
tests
tools
.gitignore
.gitmodules
CHANGELOG.markdown
LICENSE
README.markdown
gh_pages.sh
mysql-libmysqlclient.js
package.json
wscript

README.markdown

Node-mysql-libmysqlclient

MySQL bindings for Node.js using libmysqlclient.
Check out the Github repo for the source code.
Visit module site for API docs and examples.
Extra information available in wiki.

Dependencies

This module tested with Node version v0.2.2.

To build it you must install libmysqlclient library and development files for it. Node-waf use mysql_config to determine the paths to the library and header files. To install these dependencies, you can use the console.

For CentOS:

#> yum install mysql-devel

For openSUSE:

#> zypper install libmysqlclient-devel

For Debian/Ubuntu:

#> apt-get install libmysqlclient-dev

Yes, you would use aptitude if you want.

Installation

You can install this module via NPM:

$> npm install mysql-libmysqlclient

Also you can build latest source code from repository, see below.

Build and use

To get source code:

$> git clone git://github.com/Sannis/node-mysql-libmysqlclient.git
$> cd node-mysql-libmysqlclient

or (careful!)

$> wget http://github.com/Sannis/node-mysql-libmysqlclient/tarball/master
$> tar -xzvf Sannis-node-mysql-libmysqlclient-*.tar.gz
$> rm -f ./Sannis-node-mysql-libmysqlclient-*.tar.gz
$> mv Sannis-node-mysql-libmysqlclient-* node-mysql-libmysqlclient
$> cd node-mysql-libmysqlclient

To build the bindings you should run:

$> node-waf configure build

To rebuild:

$> node-waf distclean configure build

To run tests:

$> git submodule init
$> git submodule update
$> node-waf test

The two files required to use these bindings are ./mysql-libmysqlclient.js and ./mysql_bindings.node (build/default/mysql_bindings.node). Put module directory in your NODE_PATH or copy those two files where you need them.

Contributing

I will be happy to hear tips from the more experienced programmers. If you are interested in wide MySQL usage in Node.JS applications, leave your comments to the code. I'll be glad to see your forks and commits in them :)

To contribute any patches, simply fork this repository using GitHub and send a pull request to me. Thanks!

You can find other information about contributing and code style guide in wiki.

Contributors

Full contributors list.

License

MIT license. See license text in file LICENSE.

Something went wrong with that request. Please try again.