You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Travis CI [](https://travis-ci.org/brianmario/mysql2)
4
+
Appveyor CI [](https://ci.appveyor.com/project/sodabrew/mysql2)
4
5
5
6
The Mysql2 gem is meant to serve the extremely common use-case of connecting, querying and iterating on results.
6
7
Some database libraries out there serve as direct 1:1 mappings of the already complex C APIs available.
@@ -52,24 +53,21 @@ are located somewhere different than on your build system.
52
53
This overrides any rpath calculated by default or by the options above.
53
54
54
55
### Windows
55
-
First, make sure you have the DevKit installed (http://rubyinstaller.org/downloads/) and its variables
56
-
are loaded by running devkit\devktvars.bat .
56
+
Make sure that you have Ruby and the DevKit compilers installed. We recommend
57
+
the [Ruby Installer](http://rubyinstaller.org) distribution.
57
58
58
-
Next, you need a MySQL library to link against. If you have MySQL loaded on your development machine,
59
-
you can use that. If not, you will need to either copy the MySQL directory from your server, or else
60
-
obtain a copy of the MySQL C connector: http://dev.mysql.com/downloads/connector/c/
59
+
By default, the mysql2 gem will download and use MySQL Connector/C from
60
+
mysql.com. If you prefer to use a local installation of Connector/C, add the
61
+
flag `--with-mysql-dir=c:/mysql-connector-c-x-y-z` (_this path may use forward slashes_).
61
62
62
-
If you're using the connector, I recommend just getting the .zip file and unzipping it someplace convenient.
63
+
By default, the `libmysql.dll` library will be copied into the mysql2 gem
64
+
directory. To prevent this, add the flag `--no-vendor-libmysql`. The mysql2 gem
65
+
will search for `libmysql.dll` in the following paths, in order:
63
66
64
-
Now you can install mysql2. You must use the `--with-mysql-dir` option to tell gem where your MySQL library
65
-
files are. For example, if you unzipped the connector to c:\mysql-connector-c-6.1.1-win32 you would install
0 commit comments