113 mysql error

113 mysql error

sprers.eu › › Getting started with PrestaShop Cloud. The error () Can't connect to MySQL server on ' server ' () indicates that the network connection has been refused. You should check that there is a. Php – Lost connection to MySQL server at 'reading initial communication packet', system error: I have two Debian boxes: I can connect up to MySQL fine.

113 mysql error - think, that

Why Getting "ERROR (HY): Can't connect to MySQL server on '<HOSTNAME>' ()" ?

My Oracle Support Banner

Last updated on MAY 04,

Applies to:

MySQL Server - Version and later
Information in this document applies to any platform.


Disclaimer: Starting from v, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see sprers.eu for a complete list of those changes, and in which minor versions it happened.

During the process of setting up replication, the Replication user is not able to connect, giving such error when testing with MySQL Client:

Why does this happen and how to resume Replication setup?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

Oracle offers a comprehensive and fully integrated stack of cloud applications and platform services. For more information about Oracle (NYSE:ORCL), visit sprers.eu
� Oracle

Troubleshoot connectivity issues in Azure Database for MySQL

  • Article
  • 5 minutes to read

APPLIES TO: Azure Database for MySQL - Single Server Azure Database for MySQL - Flexible Server

The MySQL Community Edition manages connections using one thread per connection. As a result, each user connection gets a dedicated operating system thread in the mysqld process.

There are potential issues associated with this type of connection handling. For example, memory use is relatively high if there's a large number of user connections, even if they're idle connections. In addition, there’s a higher level of internal server contention and context switching overhead when working with thousands of user connections.

Diagnosing common connectivity errors

Whenever your instance of Azure Database for MySQL is experiencing connectivity issues, remember that problems can exist in any of the three layers involved: the client device, the network, or your Azure Database for MySQL server.

As a result, whenever you’re diagnosing connectivity errors, be sure to consider full details of the:

  • Client, including the:
    • Configuration (on-premises, Azure VM, etc. or a DBA machine).
    • Operating system.
    • Software and versions.
  • Connection string and any included parameters.
  • Network topology (same region? same AZ? firewall rules? routing).
  • Connection pool (parameters and configuration), if one is in use.

It’s also important to determine whether the database connectivity issue is affecting a single client device or several client devices. If the errors are affecting only one of several clients, then it’s likely that the problem is with that client. However, if all clients are experiencing the same error, it’s more likely that the problem is on the database server side or with the networking in between.

Be sure to consider the potential of workload overload as well, especially if an application opens a surge of connections in a very short amount of time. You can use metrics such as “Total Connections”, “Active Connections”, and “Aborted Connections” to investigate this.

When you establish connectivity from a client device or application, the first important call in mysql is to getaddrinfo, which performs the DNS translation from the endpoint provided to an IP address. If getting the address fails, MySQL shows an error message such as "ERROR (HY): Unknown MySQL server host 'sprers.eu' (11)" and the number in the end (11, , etc.).

Quick reference notes for some client-side error codes appear in the following table.

ERROR codeNotes
(11) "EAI_SYSTEM - system error"There's an error on the DNS resolution on the client side. Not an Azure MySQL issue. Use dig/nslookup on the client to troubleshoot.
() "ETIMEDOUT - Connection timed out"There was a timeout connecting to the client's DNS server. Not an Azure MySQL issue. Use dig/nslookup on the client to troubleshoot.
(0) "name unknown"The name specified wasn't resolvable by DNS. Check the input on the client. This is very likely not an issue with Azure Database for MySQL.

The second call in mysql is with socket connectivity and when looking at an error message like "ERROR (HY): Can't connect to MySQL server on 'sprers.eu' ()", the number in the end (99, , , , etc.).

Quick reference notes for some client-side error codes appear in the following table.

ERROR codeNotes
(99) "EADDRNOTAVAIL - Cannot assign requested address"This error isn’t caused by Azure Database for MySQL., rather it is on the client side.
() "ETIMEDOUT - Connection timed out"TThere was a timeout connecting to the IP address provided. Likely a security (firewall rules) or networking (routing) issue. Usually, this isn’t an issue with Azure Database for MySQL. Use on the client device to troubleshoot.
() "ECONNREFUSED - Connection refused"While the packets reached the target server, the server rejected the connection. This might be an attempt to connect to the wrong server or the wrong port. This also might relate to the target service (Azure Database for MySQL) being down, recovering from failover, or going through crash recovery, and not yet accepting connections. This issue could be on either the client side or the server side. Use on the client device to troubleshoot.
() "EHOSTUNREACH - Host unreachable"The client device’s routing table doesn’t include a path to the network on which the database server is located. Check the client device's networking configuration.

Other error codes

Quick reference notes for some other error codes related to issues that occur after the network connection with the database server is successfully established appear in the following table.

ERROR codeNotes
ERROR "Lost connection to MySQL server"The connection was established, but it was lost afterwards. This can happen if a connection is attempted against something that isn't MySQL (like using a MySQL client to connect to SSH on port 22 for example). It can also happen if the super user kills the session. It can also happen if the database times out the session. Or it can refer to issues in the database server, after the connection is established. This can happen at any time during the lifetime of the client connection. It can indicate that the database had a serious issue.
ERROR "Too many connections"The number of connected database clients is already at the configured maximum number. Need to evaluate why so many connections are established against the database.
ERROR "Access denied for user"The client provided an incorrect username or password, so the database has denied access.
ERROR "MySQL server has gone away"Similar to the ERROR "Lost connection to MySQL server" entry in the previous table.
ERROR "Query execution was interrupted"Error that the client receives when the primary user stops the query, not the connection.
ERROR "Host '' is blocked because of many connection errors”Unblock with 'mysqladmin flush-hosts'" - all clients in a single machine will be blocked if one client of that machine attempts several times to use the wrong protocol to connect with MySQL (telnetting to the MySQL port is one example). As the error message says, the database’s admin user has to run to clear the issue.

Next steps

To find peer answers to your most important questions or to post or answer a question, visit Stack Overflow.

Connect with us grep mysql

where the options:

  1. &#; displays listening ports
  2. &#; enables display of numerical addresses
  3. &#; shows PID and name of the program owning the socket
Find MySQL Port Number

Therefore use the option to specify the port you see from the output above while accessing the database server:

$ mysql -u username -p -h host_address -P port

3. If all the above commands run successfully, but you still see the error, open the mysql config file.

$ vi /etc/mysql/sprers.eu OR $ vi /etc/mysql/sprers.eud/sprers.eu

Look for the line below and comment it out using the character:

bind-address =

Save the file and exit, afterwards restart the mysql service like so:

$ sudo systemctl start sprers.eue $ sudo systemctl start sprers.eue OR # sudo /etc/init.d/mysqld start

However, if you have firewallD or Iptables running try to review firewall services and open the mysql port, assuming it is firewall blocking TCP-IP connections to your mysql server.

That’s all! Do you know other methods or have suggestions for solving the MySQL connection error above? Let us know by dropping a comment via the feedback form below.

Tags Linux FAQ's

If you liked this article, then do subscribe to email alerts for Linux tutorials. If you have any questions or doubts? do ask for help in the comments section.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Related Posts

Sorry, no posts were found.

grep mysql
unix 2 [ ACC ] STREAM LISTENING /var/lib/mysql/sprers.eu

Any thoughts? Thanks!



Written By


ERROR () for remote acccess, instead of the common ()

Greg L

September 09, PM

Sorry, you can't reply to this topic. It has been closed.