SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket/var/run/mysqld/mysqld.sock (11)
Found one answer for 11 error. It seems to be not the correct data for the connection, but everything is correctly indicated, it works. Sometimes this error is written to my log files.
I use MyISAM tables, I know that InnoDB only blocks the row, not the entire table, unlike the 1st type, but there seems to be a limit on the number of rows I read once and the sample is faster than the 1st type of tables.
my.cnf:
socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] 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 bind-address = 127.0.0.1 Fine Tuning # key_buffer = 8192M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 64 # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched myisam-recover = BACKUP max_connections = 1000 #table_cache = 64 table_cache = 1024 #thread_concurrency = 10 # # Query Cache Configuration # query_cache_limit = 2M query_cache_size = 128M #query_cache_type = 1
max_connections
1000 instead of 100 set, allocated 8 GB of RAM for the buffer. Now at least the database does not hang and there are no errors that many connections. - Anton