Advertisement
Guest User

Untitled

a guest
Mar 26th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. ~$ mysql -u user -p -h myhost.com
  2.  
  3. ERROR 2003 (HY000): Can't connect to MySQL server on 'myhost.com' (101)
  4.  
  5. telnet: Unable to connect to remote host: Network is unreachable
  6.  
  7. #
  8. # The MySQL database server configuration file.
  9. #
  10. # You can copy this to one of:
  11. # - "/etc/mysql/my.cnf" to set global options,
  12. # - "~/.my.cnf" to set user-specific options.
  13. #
  14. # One can use all long options that the program supports.
  15. # Run program with --help to get a list of available options and with
  16. # --print-defaults to see which it would actually understand and use.
  17. #
  18. # For explanations see
  19. # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
  20.  
  21. # This will be passed to all mysql clients
  22. # It has been reported that passwords should be enclosed with ticks/quotes
  23. # escpecially if they contain "#" chars...
  24. # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
  25. [client]
  26. port = 3306
  27. socket = /var/run/mysqld/mysqld.sock
  28.  
  29. # Here is entries for some specific programs
  30. # The following values assume you have at least 32M ram
  31.  
  32. # This was formally known as [safe_mysqld]. Both versions are currently parsed.
  33. [mysqld_safe]
  34. socket = /var/run/mysqld/mysqld.sock
  35. nice = 0
  36.  
  37. [mysqld]
  38. #
  39. # * Basic Settings
  40. #
  41. user = mysql
  42. pid-file = /var/run/mysqld/mysqld.pid
  43. socket = /var/run/mysqld/mysqld.sock
  44. port = 3306
  45. basedir = /usr
  46. datadir = /var/lib/mysql
  47. tmpdir = /tmp
  48. lc-messages-dir = /usr/share/mysql
  49. #skip-external-locking
  50. #
  51. # Instead of skip-networking the default is now to listen only on
  52. # localhost which is more compatible and is not less secure.
  53. #bind-address = 127.0.0.1
  54. bind-address = 0.0.0.0
  55. #
  56. # * Fine Tuning
  57. #
  58. key_buffer = 16M
  59. max_allowed_packet = 16M
  60. thread_stack = 192K
  61. thread_cache_size = 8
  62. # This replaces the startup script and checks MyISAM tables if needed
  63. # the first time they are touched
  64. myisam-recover = BACKUP
  65. #max_connections = 100
  66. #table_cache = 64
  67. #thread_concurrency = 10
  68. #
  69. # * Query Cache Configuration
  70. #
  71. query_cache_limit = 1M
  72. query_cache_size = 16M
  73. #
  74. # * Logging and Replication
  75. #
  76. # Both location gets rotated by the cronjob.
  77. # Be aware that this log type is a performance killer.
  78. # As of 5.1 you can enable the log at runtime!
  79. #general_log_file = /var/log/mysql/mysql.log
  80. #general_log = 1
  81. #
  82. # Error log - should be very few entries.
  83. #
  84. log_error = /var/log/mysql/error.log
  85. #
  86. # Here you can see queries with especially long duration
  87. #log_slow_queries = /var/log/mysql/mysql-slow.log
  88. #long_query_time = 2
  89. #log-queries-not-using-indexes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement