最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

linux 后臺(tái)日志 mysql 錯(cuò)誤異常的解釋(推薦)

 更新時(shí)間:2016年10月25日 09:46:17   投稿:jingxian  
下面小編就為大家?guī)?lái)一篇linux 后臺(tái)日志 mysql 錯(cuò)誤異常的解釋(推薦)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧

1、Caused by: com.MySQL.jdbc.exceptions.jdbc4.CommunicationsException:

The last packet successfully received from the server was 56,201,339 milliseconds ago.  The last packet sent successfully to the server was 56,201,339 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

at sun.reflect.GeneratedConstructorAccessor257.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3291)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1938)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2107)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2086)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2237)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
at org.hibernate.loader.Loader.doQuery(Loader.java:674)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2213)
... 45 more

解釋:

最后從服務(wù)器接收到數(shù)據(jù)包成功是56201339毫秒。最后一個(gè)數(shù)據(jù)包發(fā)送成功服務(wù)器56201339毫秒。長(zhǎng)于服務(wù)器配置“wait_timeout”的價(jià)值。你應(yīng)該考慮到期和/或有效性測(cè)試連接在應(yīng)用程序中使用之前,增加服務(wù)器為客戶機(jī)超時(shí)配置值,或使用連接器/ J連接屬性“autoReconnect = true”來(lái)避免這個(gè)問(wèn)題。

Linux 下/etc/mysql/mysql.cnf

mysql.cnf文件

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html


# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock


# Here is entries for some specific programs
# The following values assume you have at least 32M ram


# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0


[mysqld]
wait_timeout=86400000
interactive_timeout=86400000

#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
bind-address = 0.0.0.0
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
#max_connections        = 100
max_connections        = 10000
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 14
max_binlog_size         = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem

[mysqldump]
quick
quote-names
max_allowed_packet = 16M


[mysql]
#no-auto-rehash # faster start of mysql but no tab completition


[isamchk]
key_buffer = 16M


#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/


lower_case_table_names = 1

以上就是小編為大家?guī)?lái)的linux 后臺(tái)日志 mysql 錯(cuò)誤異常的解釋(推薦)全部?jī)?nèi)容了,希望大家多多支持腳本之家~

相關(guān)文章

  • Linux I/O多路復(fù)用詳解及實(shí)例

    Linux I/O多路復(fù)用詳解及實(shí)例

    這篇文章主要介紹了Linux I/O多路復(fù)用詳解及實(shí)例的相關(guān)資料,并附實(shí)例代碼,需要的朋友可以參考下
    2016-11-11
  • Linux搭建Docker環(huán)境全過(guò)程

    Linux搭建Docker環(huán)境全過(guò)程

    這篇文章主要介紹了Linux搭建Docker環(huán)境全過(guò)程,具有很好的參考價(jià)值,希望對(duì)大家有所幫助,如有錯(cuò)誤或未考慮完全的地方,望不吝賜教
    2024-06-06
  • Centos 6中編譯配置httpd2.4的多種方法詳解

    Centos 6中編譯配置httpd2.4的多種方法詳解

    這篇文章主要給大家介紹了關(guān)于在Centos 6中編譯配置httpd2.4的多種方法,文中分別利用了分別編譯法和一次編譯法兩種方法實(shí)現(xiàn),文中將實(shí)現(xiàn)的方法一步步介紹的非常詳細(xì),需要的朋友可以參考借鑒,下面來(lái)一起看看吧。
    2017-10-10
  • Centos 6和Centos 7下服務(wù)啟動(dòng)方法及添加到開機(jī)啟動(dòng)項(xiàng)的方法

    Centos 6和Centos 7下服務(wù)啟動(dòng)方法及添加到開機(jī)啟動(dòng)項(xiàng)的方法

    這篇文章主要介紹了Centos 6和Centos 7下服務(wù)啟動(dòng)方法及添加到開機(jī)啟動(dòng)項(xiàng)的方法的相關(guān)資料,需要的朋友可以參考下
    2016-10-10
  • Centos7.3 RabbitMQ分布式集群搭建示例

    Centos7.3 RabbitMQ分布式集群搭建示例

    本篇文章主要介紹了Centos7.3 RabbitMQ分布式集群搭建示例,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2018-05-05
  • Centos下編譯Linux內(nèi)核的具體實(shí)現(xiàn)方法

    Centos下編譯Linux內(nèi)核的具體實(shí)現(xiàn)方法

    下面小編就為大家?guī)?lái)一篇Centos下編譯Linux內(nèi)核的具體實(shí)現(xiàn)方法。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2016-12-12
  • 深入理解linux執(zhí)行文件提示No such file or directory的背后原因

    深入理解linux執(zhí)行文件提示No such file or directory的背后原因

    這篇文章主要介紹了深入理解linux執(zhí)行文件提示No such file or directory的背后原因,文中通過(guò)示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)學(xué)習(xí)吧
    2019-12-12
  • 詳解linux系統(tǒng)輸入輸出管理和vim的常用功能

    詳解linux系統(tǒng)輸入輸出管理和vim的常用功能

    這篇文章主要介紹了linux系統(tǒng)輸入輸出管理和vim的常用功能,非常不錯(cuò),具有一定的參考借鑒價(jià)值,需要的朋友可以參考下
    2019-04-04
  • ubuntu18.04安裝搜狗拼音的簡(jiǎn)易教程

    ubuntu18.04安裝搜狗拼音的簡(jiǎn)易教程

    這篇文章主要介紹了ubuntu18.04安裝搜狗拼音的簡(jiǎn)易教程,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下
    2018-05-05
  • 淺談RHEL7和RHEL6的主要變化

    淺談RHEL7和RHEL6的主要變化

    下面小編就為大家?guī)?lái)一篇淺談RHEL7和RHEL6的主要變化。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧
    2016-12-12

最新評(píng)論

镇原县| 宁武县| 凤台县| 朔州市| 宜都市| 宁蒗| 方正县| 施甸县| 安新县| 祁东县| 楚雄市| 虹口区| 东台市| 宜春市| 山丹县| 保山市| 古蔺县| 沈丘县| 云浮市| 长葛市| 汕尾市| 郧西县| 监利县| 辽宁省| 抚松县| 尼木县| 德兴市| 平潭县| 新疆| 顺昌县| 宁城县| 宝鸡市| 辉县市| 五寨县| 平原县| 榕江县| 耒阳市| 吴堡县| 莆田市| 都兰县| 南昌市|