Solved

MySql connecting to dataabse problem

Posted on 2010-09-17
3
445 Views
Last Modified: 2012-05-10
I have installed MySql 5.1 on a server and imported a database. When a client PC tries to connect to the database the below log is writen. Is there any-one that can help with the
error. If i run the program locally to the server it works.

        Exception: System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
   at System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
   at MySql.Data.Common.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.ReadByte()
   at MySql.Data.MySqlClient.PacketReader.ReadHeader()
   at MySql.Data.MySqlClient.PacketReader.OpenPacket()
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings)
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at Chillisoft.Db.v2.DatabaseConnection.GetOpenConnectionForReading()
        Stacktrace:    at System.Net.Sockets.Socket.Shutdown(SocketShutdown how)
   at MySql.Data.Common.SocketStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.BufferedStream.ReadByte()
   at MySql.Data.MySqlClient.PacketReader.ReadHeader()
   at MySql.Data.MySqlClient.PacketReader.OpenPacket()
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings)
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at Chillisoft.Db.v2.DatabaseConnection.GetOpenConnectionForReading()
2010-09-17 16:32:46,637 [3536] ERROR Chillisoft.Db.v2.DatabaseConnection [] - Error reading from database :
          Exception: System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
   at Chillisoft.Db.v2.DatabaseConnection.GetOpenConnectionForReading()
   at Chillisoft.Db.v2.DatabaseConnection.LoadDataReader(ISqlStatement selectSQL)
          Stacktrace:    at Chillisoft.Db.v2.DatabaseConnection.GetOpenConnectionForReading()
   at Chillisoft.Db.v2.DatabaseConnection.LoadDataReader(ISqlStatement selectSQL)
2010-09-17 16:32:46,637 [3536] ERROR Chillisoft.Db.v2.DatabaseConnection [] - Sql: Raw statement: select SettingValue from tbnumbers where SettingName = ?Param0   , Parameter values: InvoiceNumber,
2010-09-17 16:32:46,637 [3536] ERROR Kwanalu.MainForm [] - Exception: There was an error reading the database.
 Please contact your system administrator.
The DataReader could not be filled with
Raw statement: select SettingValue from tbnumbers where SettingName = ?Param0   , Parameter values: InvoiceNumber,
Stacktrace:    at Chillisoft.Db.v2.DatabaseConnection.LoadDataReader(ISqlStatement selectSQL)
   at Chillisoft.Db.v2.DatabaseNumberGenerator..ctor(String settingName, String tableName, Int32 seedValue)
   at Chillisoft.Db.v2.DatabaseNumberGenerator..ctor(String settingName, String tableName)
   at Chillisoft.Db.v2.DatabaseNumberGenerator..ctor(String settingName)
   at Kwanalu.Program.Main()
        Inner Exception:
        Exception: System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
   at Chillisoft.Db.v2.DatabaseConnection.GetOpenConnectionForReading()
   at Chillisoft.Db.v2.DatabaseConnection.LoadDataReader(ISqlStatement selectSQL)
        Stacktrace:    at Chillisoft.Db.v2.DatabaseConnection.GetOpenConnectionForReading()
   at Chillisoft.Db.v2.DatabaseConnection.LoadDataReader(ISqlStatement selectSQL)
0
Comment
Question by:PaulMcDonogh1
  • 2
3 Comments
 
LVL 8

Expert Comment

by:wolfgang_93
ID: 33704952
Did you run the client program without needing to change it -- and it worked?

From that I deduce that you have configured the MySQL connecting setting
to be "localhost" and the default port of "3306".

Replace "localhost" with the actual IP address of the server you are accessing.

What MySQL id were you trying to connect to? If it is "root", the default is to
allow connection to it only from localhost.
0
 

Accepted Solution

by:
PaulMcDonogh1 earned 0 total points
ID: 34198622
Found out there was a ini file that needed o be configured in a Hubenero clinet app
0
 

Author Closing Comment

by:PaulMcDonogh1
ID: 34224632
there have been no answers to this and had to hack the solution myself
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now