Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MySql connecting to dataabse problem

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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Creating and Managing Databases with phpMyAdmin in cPanel.
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
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 Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

604 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