Windows XP Pro SP2 shared memory config - how?
Posted: Wed 12 Jul 2006 17:01
I am successfully using TCP to access mySQL on localhost. I have then enabled shared memory by including the lines "shared-memory" and
"shared-memory-base-name=mysql" under the [mysqld] section of the my.ini file, and, following a reboot, checked that shared-memory is ON under the system variables>miscellaneous section of MySQL Administrator. However, when I then run the simple test code below, I get the following message at the myConnection.Open() command:
Can't open shared memory; client could not create request event (2).
How do I properly configure shared memory on the client (VB.NET) and server to make this work?
Many thanks
Stevod
CODE:
Dim myCSB As MySqlConnectionStringBuilder = New MySqlConnectionStringBuilder
myCSB.Protocol = MySqlProtocol.Memory
myCSB.UserId = "test"
myCSB.Password = "password"
myCSB.Direct = False
Dim myConnection As MySqlConnection = New MySqlConnection(myCSB.ConnectionString)
myConnection.Open()
Console.WriteLine(myConnection.ServerVersion)
myConnection.Close()
"shared-memory-base-name=mysql" under the [mysqld] section of the my.ini file, and, following a reboot, checked that shared-memory is ON under the system variables>miscellaneous section of MySQL Administrator. However, when I then run the simple test code below, I get the following message at the myConnection.Open() command:
Can't open shared memory; client could not create request event (2).
How do I properly configure shared memory on the client (VB.NET) and server to make this work?
Many thanks
Stevod
CODE:
Dim myCSB As MySqlConnectionStringBuilder = New MySqlConnectionStringBuilder
myCSB.Protocol = MySqlProtocol.Memory
myCSB.UserId = "test"
myCSB.Password = "password"
myCSB.Direct = False
Dim myConnection As MySqlConnection = New MySqlConnection(myCSB.ConnectionString)
myConnection.Open()
Console.WriteLine(myConnection.ServerVersion)
myConnection.Close()