?
Solved

MySql connecting to dataabse problem

Posted on 2010-09-17
3
Medium Priority
?
458 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Containers like Docker and Rocket are getting more popular every day. In my conversations with customers, they consistently ask what containers are and how they can use them in their environment. If you’re as curious as most people, read on. . .
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

770 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