Skip to content

Commit e2ecb2c

Browse files
committed
Update the Windows READMEs, VS project
1 parent 8e2c4cb commit e2ecb2c

File tree

4 files changed

+51
-39
lines changed

4 files changed

+51
-39
lines changed

README.win_x64.txt

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a build of version 0.3 of lib_mysqludf_str for MySQL 5.1+ and 64-bit
1+
This is a build of version 0.4 of lib_mysqludf_str for MySQL 5.1+ and 64-bit
22
Windows XP SP3 or later. It is licensed under the terms of the LGPL
33
version 2.1 or later, the exact text of which is located in COPYING.
44

@@ -13,17 +13,18 @@ To install the lib_mysqludf_str UDFs:
1313
1. Make sure that you are running 64-bit Windows and that you have installed
1414
the 64-bit build of MySQL 5.1 or later.
1515

16-
Note: The lib_mysqludf_str.dll binary has only been tested with MySQL versions
17-
5.5 and 5.1, but should work with MySQL 5.0 as well. It is, however,
16+
Note: The lib_mysqludf_str.dll binary has only been tested with MySQL version
17+
5.6, but should work with MySQL 5.5, 5.1 and 5.0 as well. It is, however,
1818
incompatible with MySQL 3.23/4.0/4.1.
1919

20-
2. Look for a file named msvcr100.dll in your System32 folder. If this file is
21-
not present, then install the Microsoft Visual C++ 2010 Redistributable Package (x64) :
22-
https://www.microsoft.com/downloads/en/details.aspx?FamilyID=BD512D9E-43C8-4655-81BF-9350143D5867
20+
2. Look for a file named msvcr110.dll in your System32 folder. If this file is
21+
not present, then install the latest Visual C++ Redistributable for Visual Studio 2012
22+
vcredist_x64.exe:
23+
http://www.microsoft.com/en-us/download/details.aspx?id=30679
2324

2425
3. Copy lib_mysqludf_str.dll to the MySQL installation's lib\plugin folder.
2526

26-
With a default installation, this is C:\Program Files\MySQL\MySQL Server 5.5\lib\plugin
27+
With a default installation, this is C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\
2728

2829
Note: You do NOT need to re-start MySQL after copying lib_mysqludf_str.dll
2930
into the plugin directory.
@@ -37,31 +38,32 @@ To install the lib_mysqludf_str UDFs:
3738
+------------------------------+
3839
| lib_mysqludf_str_info() |
3940
+------------------------------+
40-
| lib_mysqludf_str version 0.3 |
41+
| lib_mysqludf_str version 0.4 |
4142
+------------------------------+
4243

4344

4445
TROUBLESHOOTING
4546
================================================================================
4647
* ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_str' (errno: 0 )
4748

48-
This either means that the Microsoft Visual C++ 2010 Redistributable Package
49+
This either means that the Visual C++ Redistributable for Visual Studio 2012
4950
is not installed or that MySQL could not find lib_mysqludf_str.dll in the
5051
plugin directory.
5152

52-
Look for a file named msvcr100.dll in your System32 folder. If this file is
53-
not present, then install the latest Microsoft Visual C++ 2010 Redistributable Package (x64).
53+
Look for a file named msvcr110.dll in your System32 folder. If this file is
54+
not present, then install the latest Visual C++ Redistributable for Visual Studio 2012
55+
vcredist_x64.exe.
5456

5557
Verify that lib_mysqludf_str.dll was copied into the plugin directory by
5658
executing:
5759
SHOW VARIABLES LIKE 'plugin_dir';
5860

5961
The result should be:
60-
+---------------+----------------------------------------------------+
61-
| Variable_name | Value |
62-
+---------------+----------------------------------------------------+
63-
| plugin_dir | C:\Program Files\MySQL\MySQL Server 5.5\lib/plugin |
64-
+---------------+----------------------------------------------------+
62+
+---------------+-----------------------------------------------------+
63+
| Variable_name | Value |
64+
+---------------+-----------------------------------------------------+
65+
| plugin_dir | C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\ |
66+
+---------------+-----------------------------------------------------+
6567

6668
If it's not, then copy lib_mysqludf_str.dll to the listed directory.
6769

README.win_x86.txt

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is a build of version 0.3 of lib_mysqludf_str for 32-bit MySQL 5.1+ and
1+
This is a build of version 0.4 of lib_mysqludf_str for 32-bit MySQL 5.1+ and
22
Windows XP SP3 or later. It is licensed under the terms of the LGPL
33
version 2.1 or later, the exact text of which is located in COPYING.
44

@@ -12,17 +12,18 @@ To install the lib_mysqludf_str UDFs:
1212

1313
1. Make sure that you have installed the 32-bit build of MySQL 5.1 or later.
1414

15-
Note: The lib_mysqludf_str.dll binary has only been tested with MySQL versions
16-
5.5 and 5.1, but should work with MySQL 5.0 as well. It is, however,
15+
Note: The lib_mysqludf_str.dll binary has only been tested with MySQL version
16+
5.6, but should work with MySQL 5.5, 5.1 and 5.0 as well. It is, however,
1717
incompatible with MySQL 3.23/4.0/4.1.
1818

19-
2. Look for a file named msvcr100.dll in your System32 folder. If this file is
20-
not present, then install the Microsoft Visual C++ 2010 Redistributable Package (x86):
21-
https://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84
19+
2. Look for a file named msvcr110.dll in your System32 folder. If this file is
20+
not present, then install the latest Visual C++ Redistributable for Visual Studio 2012
21+
vcredist_x86.exe:
22+
http://www.microsoft.com/en-us/download/details.aspx?id=30679
2223

2324
3. Copy lib_mysqludf_str.dll to the MySQL installation's lib\plugin folder.
2425

25-
With a default installation, this is C:\Program Files\MySQL\MySQL Server 5.5\lib\plugin
26+
With a default installation, this is C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\
2627

2728
Note: You do NOT need to re-start MySQL after copying lib_mysqludf_str.dll
2829
into the plugin directory.
@@ -36,31 +37,32 @@ To install the lib_mysqludf_str UDFs:
3637
+------------------------------+
3738
| lib_mysqludf_str_info() |
3839
+------------------------------+
39-
| lib_mysqludf_str version 0.3 |
40+
| lib_mysqludf_str version 0.4 |
4041
+------------------------------+
4142

4243

4344
TROUBLESHOOTING
4445
================================================================================
4546
* ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_str' (errno: 0 )
4647

47-
This either means that the Microsoft Visual C++ 2010 Redistributable Package
48+
This either means that the Visual C++ Redistributable for Visual Studio 2012
4849
is not installed or that MySQL could not find lib_mysqludf_str.dll in the
4950
plugin directory.
5051

51-
Look for a file named msvcr100.dll in your System32 folder. If this file is
52-
not present, then install the latest Microsoft Visual C++ 2010 Redistributable Package (x86).
52+
Look for a file named msvcr110.dll in your System32 folder. If this file is
53+
not present, then install the latest Visual C++ Redistributable for Visual Studio 2012
54+
vcredist_x86.exe.
5355

5456
Verify that lib_mysqludf_str.dll was copied into the plugin directory by
5557
executing:
5658
SHOW VARIABLES LIKE 'plugin_dir';
5759

5860
The result should be:
59-
+---------------+----------------------------------------------------+
60-
| Variable_name | Value |
61-
+---------------+----------------------------------------------------+
62-
| plugin_dir | C:\Program Files\MySQL\MySQL Server 5.5\lib/plugin |
63-
+---------------+----------------------------------------------------+
61+
+---------------+-----------------------------------------------------+
62+
| Variable_name | Value |
63+
+---------------+-----------------------------------------------------+
64+
| plugin_dir | C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\ |
65+
+---------------+-----------------------------------------------------+
6466

6567
If it's not, then copy lib_mysqludf_str.dll to the listed directory.
6668

config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#undef PACKAGE_VERSION
22

3-
#define PACKAGE_VERSION "0.3"
3+
#define PACKAGE_VERSION "0.4"
44

55
#define MAX_RANDOM_BYTES 4096LL

lib_mysqludf_str.vcxproj

+14-6
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@
2727
<ConfigurationType>DynamicLibrary</ConfigurationType>
2828
<UseDebugLibraries>true</UseDebugLibraries>
2929
<CharacterSet>MultiByte</CharacterSet>
30-
<PlatformToolset>Windows7.1SDK</PlatformToolset>
30+
<PlatformToolset>v110</PlatformToolset>
3131
</PropertyGroup>
3232
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3333
<ConfigurationType>DynamicLibrary</ConfigurationType>
3434
<UseDebugLibraries>false</UseDebugLibraries>
3535
<WholeProgramOptimization>true</WholeProgramOptimization>
3636
<CharacterSet>MultiByte</CharacterSet>
37-
<PlatformToolset>Windows7.1SDK</PlatformToolset>
37+
<PlatformToolset>v110</PlatformToolset>
3838
</PropertyGroup>
3939
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
40-
<PlatformToolset>Windows7.1SDK</PlatformToolset>
40+
<PlatformToolset>v110</PlatformToolset>
4141
</PropertyGroup>
4242
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4343
<ConfigurationType>DynamicLibrary</ConfigurationType>
4444
</PropertyGroup>
4545
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
46-
<PlatformToolset>Windows7.1SDK</PlatformToolset>
46+
<PlatformToolset>v110</PlatformToolset>
4747
</PropertyGroup>
4848
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
4949
<ConfigurationType>DynamicLibrary</ConfigurationType>
@@ -87,10 +87,12 @@
8787
<WarningLevel>Level3</WarningLevel>
8888
<Optimization>Disabled</Optimization>
8989
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
90+
<AdditionalIncludeDirectories>C:\Program Files %28x86%29\mysql-5.6.10\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
9091
</ClCompile>
9192
<Link>
9293
<GenerateDebugInformation>true</GenerateDebugInformation>
9394
<AdditionalDependencies>mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
95+
<AdditionalLibraryDirectories>C:\Program Files %28x86%29\mysql-5.6.10\lib\debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
9496
</Link>
9597
<PostBuildEvent>
9698
<Command>
@@ -104,36 +106,42 @@
104106
<FunctionLevelLinking>true</FunctionLevelLinking>
105107
<IntrinsicFunctions>true</IntrinsicFunctions>
106108
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
109+
<AdditionalIncludeDirectories>C:\Program Files %28x86%29\mysql-5.6.10\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
107110
</ClCompile>
108111
<Link>
109112
<GenerateDebugInformation>true</GenerateDebugInformation>
110113
<EnableCOMDATFolding>true</EnableCOMDATFolding>
111114
<OptimizeReferences>true</OptimizeReferences>
112115
<AdditionalDependencies>mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
116+
<AdditionalLibraryDirectories>C:\Program Files %28x86%29\mysql-5.6.10\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
113117
</Link>
114118
</ItemDefinitionGroup>
115119
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
116120
<Link>
117121
<AdditionalDependencies>mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
118122
<GenerateDebugInformation>true</GenerateDebugInformation>
123+
<AdditionalLibraryDirectories>C:\Program Files\MySQL\MySQL Server 5.6\lib\debug;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
119124
</Link>
120125
<PostBuildEvent>
121-
<Command>XCOPY "$(TargetDir)$(TargetName).*" "C:\Program Files\MySQL\MySQL Server 5.5\lib\plugin\" /EXCLUDE:xcopy_excludelist.txt /Y</Command>
126+
<Command>XCOPY "$(TargetDir)$(TargetName).*" "C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\" /EXCLUDE:xcopy_excludelist.txt /Y</Command>
122127
</PostBuildEvent>
123128
<ClCompile>
124129
<PreprocessorDefinitions>_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
130+
<AdditionalIncludeDirectories>C:\Program Files\MySQL\MySQL Server 5.6\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
125131
</ClCompile>
126132
</ItemDefinitionGroup>
127133
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
128134
<Link>
129135
<AdditionalDependencies>mysqlclient.lib;%(AdditionalDependencies)</AdditionalDependencies>
130136
<GenerateDebugInformation>true</GenerateDebugInformation>
137+
<AdditionalLibraryDirectories>C:\Program Files\MySQL\MySQL Server 5.6\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
131138
</Link>
132139
<PostBuildEvent>
133-
<Command>XCOPY "$(TargetDir)$(TargetName).*" "C:\Program Files\MySQL\MySQL Server 5.5\lib\plugin\" /EXCLUDE:xcopy_excludelist.txt /Y</Command>
140+
<Command>XCOPY "$(TargetDir)$(TargetName).*" "C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\" /EXCLUDE:xcopy_excludelist.txt /Y</Command>
134141
</PostBuildEvent>
135142
<ClCompile>
136143
<PreprocessorDefinitions>_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
144+
<AdditionalIncludeDirectories>C:\Program Files\MySQL\MySQL Server 5.6\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
137145
</ClCompile>
138146
</ItemDefinitionGroup>
139147
<ItemGroup>

0 commit comments

Comments
 (0)