Solved

MySql connecting to dataabse problem

Posted on 2010-09-17
3
454 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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