Bug #82135 unable locate entry point tryAcquireSRWLockExclusive on KERNEL32.dll
Submitted: 7 Jul 2016 2:21 Modified: 7 Jul 2016 6:02
Reporter: Neil Qiu Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.7.13 OS:Windows (Windows Server 2008 SP2)
Assigned to: CPU Architecture:Any

[7 Jul 2016 2:21] Neil Qiu
Description:
Hi

I am installing mysql 5.7.13 with file: mysql-5.7.13-winx64.msi on Windows Server 2008 SP2. The installer successfully installed Mysql on my Server. But the installer seems only copy some files to the destination folder, didn't do any configuration. So I had to initialize manually. When I go to DOS, and run command: mysqld --initialize --user=mysql --console, it complained error something like: unable locate entry point tryAcquireSRWLockExclusive on KERNEL32.dll. Failed to initialize Mysql and install Mysql service. 

How to fix this problem?

Thanks. 

How to repeat:
Steps to repeat the error
1 mysql-5.7.13-winx64.msi, on Windows Server 2008 SP2, 64 bit
2 open the installed folder, rename my-default.ini to my.ini
3 open my.ini, set its contents like:
[mysql]
default-character-set=utf8 
[mysqld]
basedir = E:\MySQL57
datadir = E:\MySQL57\data
port = 3306
# server_id = .....

max_connections=500
character-set-server=utf8
default-storage-engine=INNODB 
join_buffer_size = 128M
sort_buffer_size = 2M
read_rnd_buffer_size = 2M

4 goto DOS, run command: mysqld --initialize --user=mysql --console, complains error like: unable locate entry point tryAcquireSRWLockExclusive on KERNEL32.dll
[7 Jul 2016 6:02] MySQL Verification Team
Hello Neil Qiu,

Thank you for the report.
Imho Microsoft Windows 2008 Server is not supported for 5.7.
Please see the note by Developer in Bug #76203	

Also, listed in EOL https://www.mysql.com/support/eol-notice.html

Thanks,
Umesh