Сейчас в настройках файла у меня стоит так:
# This was formally known as [safe_mysqld]. Both versions are currently parsed. [mysqld_safe] log-error=/var/log/mysql.log socket = /var/run/mysqld/mysqld.sock nice = 0
Все правильно настроено? Осталось ждать, пока сервер не начнет тупить, и файл создастся?
Просили выложить лог файл — выложил :)
Спасибо! Вот последняя часть кода файла mysql-slow.log
Вся лента забита аналогичными сообщениями.
SET timestamp=1432754068; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:32 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003136 Lock_time: 0.000136 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754072; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:35 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.004264 Lock_time: 0.000153 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754075; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:38 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003433 Lock_time: 0.000121 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754078; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003277 Lock_time: 0.000067 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754078; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:41 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003540 Lock_time: 0.000125 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754081; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:44 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002601 Lock_time: 0.000081 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754084; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:46 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003607 Lock_time: 0.000131 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754086; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:48 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003301 Lock_time: 0.000129 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754088; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:49 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.004297 Lock_time: 0.000154 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754089; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:51 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002753 Lock_time: 0.000079 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754091; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:54 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.004154 Lock_time: 0.000133 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754094; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:56 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.006215 Lock_time: 0.000070 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754096; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:14:59 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003031 Lock_time: 0.000083 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754099; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:01 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003064 Lock_time: 0.000090 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754101; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:04 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002966 Lock_time: 0.000089 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754104; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003570 Lock_time: 0.000150 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754104; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:07 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002823 Lock_time: 0.000086 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754107; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:10 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003558 Lock_time: 0.000150 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754110; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:13 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003087 Lock_time: 0.000128 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754113; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:18 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003618 Lock_time: 0.000139 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754118; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:20 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003566 Lock_time: 0.000160 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754120; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:24 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003288 Lock_time: 0.000129 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754124; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:27 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002911 Lock_time: 0.000094 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754127; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:28 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002768 Lock_time: 0.000082 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754128; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:30 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003372 Lock_time: 0.000117 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754130; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:33 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003572 Lock_time: 0.000124 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754133; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:36 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003485 Lock_time: 0.000217 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754136; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:38 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003684 Lock_time: 0.000124 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754138; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:39 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002937 Lock_time: 0.000093 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754139; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:42 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.012881 Lock_time: 0.000103 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754142; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:43 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.004593 Lock_time: 0.000149 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754143; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:45 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002985 Lock_time: 0.000161 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754145; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:47 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.012453 Lock_time: 0.000082 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754147; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:49 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003848 Lock_time: 0.000125 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754149; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:52 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002252 Lock_time: 0.000071 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754152; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.002224 Lock_time: 0.000079 Rows_sent: 623 Rows_examined: 818 SET timestamp=1432754152; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; # Time: 150527 22:15:54 # User@Host: a129567_home[a129567_home] @ localhost [] # Query_time: 0.003149 Lock_time: 0.000107 Rows_sent: 622 Rows_examined: 817 SET timestamp=1432754154; SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes';
Все значки # в нужных местах убраны, но файл по-прежнему не создается.
Не совсем понимаю, что именно нужно вставить в файл
my.cnf
Он вроде как создается по настройкам файла, но файлов в папке нету.
Был у меня Shared, только вот с нормальными ресурсами стоит он довольно дорого. Да и стабильность в них не радует совсем.
Решение проблемы банально просто: компьютер вашего заказчика не может вывести необходимые цвета из-за ущербности монитора, вернее его цветовой палитры.
Например у меня такое было, что цвет #FAFAFA на одном компьютере выглядел 1 в 1 как #FFFFFF. Проблема не на вашей стороне.
Содержимое файла:
# # 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] log-error=/var/log/mysql.log socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] # # * 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 # # * 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 #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 logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf. # # 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 = 10 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 max_connections=32 innodb_buffer_pool_size=32M [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/
Apache 2.2.22-13+deb7u4
MySQL 5.5.41-0+wheezy1
PHP 5.4.36-0+deb7u3
Perl 5.14.2-21+deb7u2
Kernel 3.2.0-4-amd64---------- Добавлено 27.05.2015 в 18:56 ----------Ну и сразу хотелось бы узнать, какой плагин лучше использовать для новостного сайта: WP Super Cache или W3 Total Cache
Насколько я знаю они создают бекап каждой страницы в HTML, а потом выдают пользователю уже готовую HTML страницу без обращения к базе данных, верно? Все скрипты грузятся через базу.
Я уже ставил плагины кеширования и W3 кеш, и Super кеш, но толку от этого было мало. Просмотры начинают считаться неправильно тк они выведены не плагином, а стандартной функцией WP.---------- Добавлено 27.05.2015 в 18:46 ----------Где можно посмотреть эти самые логи? Постараюсь найти и скинуть.