Задавайте вопросы, мы ответим
Вы не зашли.
paulus написал:
mysql -NBe "show tables" mfora7d | xargs -i@ mysql -e "alter table @ engine=innodb" mfora7d
Но только сначала включите движок и выдайте ему памяти
А это он лезит по всем ячейкам и какой то там параметр меняет? :@))) предупреждать надо у меня это на пару часов до сих пор пашет!!!
Неактивен
Ну, оно все таблицы в InnoDB преобразует, да
Неактивен
Все равно подписает теперь даже ка кто сильнее чтоли и вдругом месте... может гед нибудь особенно чего нибтьу увеличть в параметрах?
http://i062.radikal.ru/1006/ce/c657604dd902.png
Неактивен
Полный список процессов покажите?
Неактивен
Долго не вис а саейчас завис прямо с утра
-bash-3.1# mysql -e "show processlist"
+--------+---------+-----------+---------+---------+------+----------------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+--------+---------+-----------+---------+---------+------+----------------------+------------------------------------------------------------------------------------------------------+
| 943841 | mfora7d | localhost | mfora7d | Query | 351 | Locked | SELECT u.*, z.friend, z.foe, p.* FROM (phpbb_users u, phpbb_posts p) LEFT JOIN phpbb_zebra z ON (z.u |
| 943844 | mfora7d | localhost | mfora7d | Query | 312 | Locked | SELECT user_id, username, user_email, user_allow_viewemail
FROM phpbb_users |
| 943845 | mfora7d | localhost | mfora7d | Query | 350 | Locked | SELECT u.*, z.friend, z.foe, p.* FROM (phpbb_users u, phpbb_posts p) LEFT JOIN phpbb_zebra z ON (z.u |
| 943849 | mfora7d | localhost | mfora7d | Query | 351 | Locked | UPDATE phpbb_users
SET user_lastvisit = 1277874070
WHERE user_id = 39561 |
| 943850 | mfora7d | localhost | mfora7d | Query | 350 | Locked | SELECT u.username, u.user_id, u.user_colour, p.*, z.friend, z.foe FROM (phpbb_users u, phpbb_posts p |
| 943851 | mfora7d | localhost | mfora7d | Query | 351 | Locked | SELECT u.*, z.friend, z.foe, p.* FROM (phpbb_users u, phpbb_posts p) LEFT JOIN phpbb_zebra z ON (z.u |
| 943852 | mfora7d | localhost | mfora7d | Query | 350 | Locked | SELECT u.username, u.user_id, u.user_colour, p.*, z.friend, z.foe FROM (phpbb_users u, phpbb_posts p |
| 943854 | mfora7d | localhost | mfora7d | Query | 351 | Locked | SELECT u.*, z.friend, z.foe, p.* FROM (phpbb_users u, phpbb_posts p) LEFT JOIN phpbb_zebra z ON (z.u |
| 943855 | mfora7d | localhost | mfora7d | Query | 351 | Locked | SELECT u.*, z.friend, z.foe, p.* FROM (phpbb_users u, phpbb_posts p) LEFT JOIN phpbb_zebra z ON (z.u |
| 943856 | mfora7d | localhost | mfora7d | Query | 352 | Locked | SELECT *
FROM phpbb_users
WHERE user_id = 1 |
| 943858 | mfora7d | localhost | mfora7d | Query | 1685 | Copying to tmp table | SELECT f.*, t.*, p.*, u.* FROM (phpbb_posts p, phpbb_users u, phpbb_topics t) LEFT JOIN phpbb_forums |
| 943859 | mfora7d | localhost | mfora7d | Query | 352 | Locked | UPDATE phpbb_users
SET user_lastvisit = 1277874080
WHERE user_id = 39587 |
| 943860 | mfora7d | localhost | mfora7d | Query | 352 | Locked | UPDATE phpbb_users
SET user_lastvisit = 1277874081
WHERE user_id = 39587 |
| 943862 | mfora7d | localhost | mfora7d | Query | 347 | Locked | SELECT u.*, s.*
FROM phpbb_users u
LEFT JOIN phpbb_sessions s ON (s.session_user_id = u.us |
| 943863 | mfora7d | localhost | mfora7d | Query | 347 | Locked | SELECT *
FROM phpbb_users
WHERE user_id = 1 |
| 943864 | mfora7d | localhost | mfora7d | Query | 347 | Locked | SELECT u.*, s.*
FROM phpbb_sessions s, phpbb_users u
WHERE s.session_id = '9bff04d48dd3b9c4c |
| 943865 | mfora7d | localhost | mfora7d | Query | 347 | Locked | SELECT *
FROM phpbb_users
WHERE user_id = 1 |
| 943867 | mfora7d | localhost | mfora7d | Query | 343 | Locked | SELECT u.*, s.*
FROM phpbb_sessions s, phpbb_users u
WHERE s.session_id = 'bcf701739517567bb |
| 943868 | mfora7d | localhost | mfora7d | Query | 341 | Locked | SELECT u.*, s.*
FROM phpbb_sessions s, phpbb_users u
WHERE s.session_id = '32a3c62395cddb8ce |
| 943871 | mfora7d | localhost | mfora7d | Query | 333 | Locked | SELECT u.user_id, u.user_lang
FROM phpbb_sessions s, phpbb_users u
WHERE s.session_id = '6e48b |
| 943872 | root | localhost | NULL | Query | 0 | NULL | show processlist |
+--------+---------+-----------+---------+---------+------+----------------------+------------------------------------------------------------------------------------------------------+
-bash-3.1#
Неактивен
А Вы точно преобразовали все таблицы в InnoDB?
Неактивен
Да! Я запсутил ту строку которую вы дали на предыдуший строке она сразу все подвесила
апач отключил чтобы не было запросов
смотрел по команде top или atop (не помню) там прям было видно как меняютяся названия таблиы post forum session - все PHPbb
может еще где чего нибудь?
Кстати mysqltuner.pl не показывает что включен innodb хотя mysql грузится с my.cnf по умолчанию для innodb
Отредактированно Jabali (30.06.2010 14:55:33)
Неактивен
«show create table любоеназваниетаблички;» выполните, пожалуйста. Есть очень
сильное ощущение, что они у Вас остались в MyISAM. У Вас в my.cnf не стоит
какой-нибудь --skip-innodb?
Неактивен
my.cnf есть странные строки
default_table_type = MYISAM
инно включен потому что
#skip-innodb
mysql> show create table phpbb_users;
ERROR 1046 (3D000): No database selected
Неактивен
а брал my.cnf по умолчнаию только цифры слегка уменьшал чтобы в 2 GB влезало
#BEGIN CONFIG INFO
#DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries
#TYPE: SYSTEM
#END CONFIG INFO
Отредактированно Jabali (30.06.2010 16:35:27)
Неактивен
Сначала надо сделать «use названиебазыданных»
А живость движка InnoDB можно посмотреть, выполнив «SHOW ENGINES».
Неактивен
Получается каикм то образом вырублен но был момент когда был включен ыыыыы
mysql> show engines;
+------------+----------+----------------------------------------------------------------+
| Engine | Support | Comment |
+------------+----------+----------------------------------------------------------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
| InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
| BerkeleyDB | DISABLED | Supports transactions and page-level locking |
| BLACKHOLE | NO | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE | NO | Example storage engine |
| ARCHIVE | NO | Archive storage engine |
| CSV | NO | CSV storage engine |
| ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
| FEDERATED | NO | Federated MySQL storage engine |
| MRG_MYISAM | YES | Collection of identical MyISAM tables |
| ISAM | NO | Obsolete storage engine |
+------------+----------+----------------------------------------------------------------+
12 rows in set (0.00 sec)
и вот
mysql> show create table phpbb_users;
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| phpbb_users | CREATE TABLE `phpbb_users` (
`user_id` mediumint(8) unsigned NOT NULL auto_increment,
`user_type` tinyint(2) NOT NULL default '0',
`group_id` mediumint(8) unsigned NOT NULL default '3',
`user_permissions` mediumtext collate utf8_bin NOT NULL,
`user_perm_from` mediumint(8) unsigned NOT NULL default '0',
`user_ip` varchar(40) collate utf8_bin NOT NULL default '',
`user_regdate` int(11) unsigned NOT NULL default '0',
`username` varchar(255) collate utf8_bin NOT NULL default '',
`username_clean` varchar(255) collate utf8_bin NOT NULL default '',
`user_password` varchar(40) collate utf8_bin NOT NULL default '',
`user_passchg` int(11) unsigned NOT NULL default '0',
`user_pass_convert` tinyint(1) unsigned NOT NULL default '0',
`user_email` varchar(100) collate utf8_bin NOT NULL default '',
`user_email_hash` bigint(20) NOT NULL default '0',
`user_birthday` varchar(10) collate utf8_bin NOT NULL default '',
`user_lastvisit` int(11) unsigned NOT NULL default '0',
`user_lastmark` int(11) unsigned NOT NULL default '0',
`user_lastpost_time` int(11) unsigned NOT NULL default '0',
`user_lastpage` varchar(200) collate utf8_bin NOT NULL default '',
`user_last_confirm_key` varchar(10) collate utf8_bin NOT NULL default '',
`user_last_search` int(11) unsigned NOT NULL default '0',
`user_warnings` tinyint(4) NOT NULL default '0',
`user_last_warning` int(11) unsigned NOT NULL default '0',
`user_login_attempts` tinyint(4) NOT NULL default '0',
`user_inactive_reason` tinyint(2) NOT NULL default '0',
`user_inactive_time` int(11) unsigned NOT NULL default '0',
`user_posts` mediumint(8) unsigned NOT NULL default '0',
`user_lang` varchar(30) collate utf8_bin NOT NULL default '',
`user_timezone` decimal(5,2) NOT NULL default '0.00',
`user_dst` tinyint(1) unsigned NOT NULL default '0',
`user_dateformat` varchar(30) collate utf8_bin NOT NULL default 'd M Y H:i',
`user_style` mediumint(8) unsigned NOT NULL default '0',
`user_rank` mediumint(8) unsigned NOT NULL default '0',
`user_colour` varchar(6) collate utf8_bin NOT NULL default '',
`user_new_privmsg` int(4) NOT NULL default '0',
`user_unread_privmsg` int(4) NOT NULL default '0',
`user_last_privmsg` int(11) unsigned NOT NULL default '0',
`user_message_rules` tinyint(1) unsigned NOT NULL default '0',
`user_full_folder` int(11) NOT NULL default '-3',
`user_emailtime` int(11) unsigned NOT NULL default '0',
`user_topic_show_days` smallint(4) unsigned NOT NULL default '0',
`user_topic_sortby_type` varchar(1) collate utf8_bin NOT NULL default 't',
`user_topic_sortby_dir` varchar(1) collate utf8_bin NOT NULL default 'd',
`user_post_show_days` smallint(4) unsigned NOT NULL default '0',
`user_post_sortby_type` varchar(1) collate utf8_bin NOT NULL default 't',
`user_post_sortby_dir` varchar(1) collate utf8_bin NOT NULL default 'a',
`user_notify` tinyint(1) unsigned NOT NULL default '0',
`user_notify_pm` tinyint(1) unsigned NOT NULL default '1',
`user_notify_type` tinyint(4) NOT NULL default '0',
`user_allow_pm` tinyint(1) unsigned NOT NULL default '1',
`user_allow_viewonline` tinyint(1) unsigned NOT NULL default '1',
`user_allow_viewemail` tinyint(1) unsigned NOT NULL default '1',
`user_allow_massemail` tinyint(1) unsigned NOT NULL default '1',
`user_options` int(11) unsigned NOT NULL default '895',
`user_avatar` varchar(255) collate utf8_bin NOT NULL default '',
`user_avatar_type` tinyint(2) NOT NULL default '0',
`user_avatar_width` smallint(4) unsigned NOT NULL default '0',
`user_avatar_height` smallint(4) unsigned NOT NULL default '0',
`user_sig` mediumtext collate utf8_bin NOT NULL,
`user_sig_bbcode_uid` varchar(8) collate utf8_bin NOT NULL default '',
`user_sig_bbcode_bitfield` varchar(255) collate utf8_bin NOT NULL default '',
`user_from` varchar(100) collate utf8_bin NOT NULL default '',
`user_icq` varchar(15) collate utf8_bin NOT NULL default '',
`user_aim` varchar(255) collate utf8_bin NOT NULL default '',
`user_yim` varchar(255) collate utf8_bin NOT NULL default '',
`user_msnm` varchar(255) collate utf8_bin NOT NULL default '',
`user_jabber` varchar(255) collate utf8_bin NOT NULL default '',
`user_website` varchar(200) collate utf8_bin NOT NULL default '',
`user_occ` text collate utf8_bin NOT NULL,
`user_interests` text collate utf8_bin NOT NULL,
`user_actkey` varchar(32) collate utf8_bin NOT NULL default '',
`user_newpasswd` varchar(40) collate utf8_bin NOT NULL default '',
`user_form_salt` varchar(32) collate utf8_bin NOT NULL default '',
`user_gender` tinyint(1) unsigned NOT NULL default '0',
`user_vkontakte` varchar(255) collate utf8_bin NOT NULL default '',
`user_odnoklassniki` varchar(255) collate utf8_bin NOT NULL default '',
`user_moikrug` varchar(255) collate utf8_bin NOT NULL default '',
`user_moimir` varchar(255) collate utf8_bin NOT NULL default '',
`user_edit_time` int(4) NOT NULL default '0',
`user_smartfeed_key` varchar(32) collate utf8_bin default NULL,
PRIMARY KEY (`user_id`),
UNIQUE KEY `username_clean` (`username_clean`),
KEY `user_birthday` (`user_birthday`),
KEY `user_email_hash` (`user_email_hash`),
KEY `user_type` (`user_type`)
) ENGINE=MyISAM AUTO_INCREMENT=41876 DEFAULT CHARSET=utf8 COLLATE=utf8_bin |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.24 sec)
mysql>
Неактивен
Ну, да, как видим — табличка MyISAM и InnoDB выключен. Ищите место, где он
выключен, включайте и преобразуйте таблички
Неактивен
paulus написал:
Ну, да, как видим — табличка MyISAM и InnoDB выключен. Ищите место, где он
выключен, включайте и преобразуйте таблички
А mysql из исходников собрать без поддержки innodb возможно?
Неактивен
Да, но тогда его в списке нет, а не disabled.
Неактивен
Сейчас InnoDB (если верить mysqltuner.pl) включен, но тот же mysqtuner не показывает отведенную под innodb память!!!
Может с синтаксисом что не так?
для [OK] Currently running supported MySQL version 5.0.77
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
key_buffer=274M
table_cache=512
read_buffer=128K
sort_buffer=1M
join_buffer_size=2M
max_connections=110
wait_timeout=10
max_connect_errors=10
query_cache_limit=1M
query_cache_size=128M
query_cache_type=1
tmp_table_size=256M
thread_cache_size=4
connect_timeout=10
interactive_timeout=120
#skip-innodb
skip-bdb
old_passwords=1
[innodb]
innodb_additional_mem_pool_size=16M
innodb_buffer_pool_size=1024M
innodb_data_file_path=ibdata1:10M:autoextend
innodb_file_io_threads=4
innodb_thread_concurrency=16
innodb_log_buffer_size=8M
innodb_log_file_size=256M
innodb_log_files_in_group=3
innodb_max_dirty_pages_pct=90
innodb_lock_wait_timeout=120
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Отредактированно Jabali (01.07.2010 09:56:07)
Неактивен
параметры innodb настраиваться не хотят не смотря на все строки буффер не увеличивается
-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 836M (Tables: 89)
[--] Data in InnoDB tables: 61M (Tables: 45)
[!!] Total fragmented tables: 16
-------- Performance Metrics -------------------------------------------------
[--] Up for: 16s (27 q [1.688 qps], 7 conn, TX: 48K, RX: 2K)
[--] Reads / Writes: 88% / 12%
[--] Total buffers: 428.0M global + 3.6M per thread (110 max threads)
[OK] Maximum possible memory usage: 819.9M (40% of installed RAM)
[OK] Slow queries: 0% (0/27)
[OK] Highest usage of available connections: 0% (1/110)
[!!] Key buffer size / total MyISAM indexes: 274.0M/1.2G
[!!] Key buffer hit rate: 74.1% (158 cached / 41 reads)
[!!] Query cache efficiency: 0.0% (0 cached / 16 selects)
[OK] Query cache prunes per day: 0
[OK] Temporary tables created on disk: 0% (0 on disk / 3 total)
[OK] Thread cache hit rate: 85% (1 created / 7 connections)
[OK] Table cache hit rate: 71% (15 open / 21 opened)
[OK] Open file limit used: 2% (30/1K)
[OK] Table locks acquired immediately: 100% (29 immediate / 29 locks)
[!!] InnoDB data size / buffer pool: 61.8M/8.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Variables to adjust:
key_buffer_size (> 1.2G)
query_cache_limit (> 1M, or use smaller result sets)
innodb_buffer_pool_size (>= 61M)
при том что
innodb_buffer_pool_size=1024M
Неактивен
А кто Вас надоумил написать [innodb]? Параметры mysqld должны быть
в разделе [mysqld].
Неактивен
А если не пишу [innodb] оно вообще не включается и база не работает
shoe engines показывает
les |
| InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
но mysqltuner.pl показывает что память выросла как в анстрйоках но inno у него тоже как бы выключен
Отредактированно Jabali (01.07.2010 12:23:26)
Неактивен
С [innodb] запускает но на настройки не реагирует
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.77
[OK] Operating on 32-bit architecture with less than 2GB RAM
-------- Storage Engine Statistics -------------------------------------------
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 836M (Tables: 89)
[--] Data in InnoDB tables: 61M (Tables: 45)
[!!] Total fragmented tables: 14
-------- Performance Metrics -------------------------------------------------
[--] Up for: 1m 8s (1K q [27.309 qps], 181 conn, TX: 5M, RX: 232K)
[--] Reads / Writes: 84% / 16%
[--] Total buffers: 428.0M global + 3.6M per thread (110 max threads)
[OK] Maximum possible memory usage: 819.9M (40% of installed RAM)
[OK] Slow queries: 0% (0/1K)
[OK] Highest usage of available connections: 7% (8/110)
[!!] Key buffer size / total MyISAM indexes: 274.0M/1.2G
[!!] Key buffer hit rate: 93.8% (21K cached / 1K reads)
[OK] Query cache efficiency: 26.5% (308 cached / 1K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 66 sorts)
[OK] Temporary tables created on disk: 14% (14 on disk / 97 total)
[OK] Thread cache hit rate: 95% (9 created / 181 connections)
[OK] Table cache hit rate: 91% (66 open / 72 opened)
[OK] Open file limit used: 6% (73/1K)
[OK] Table locks acquired immediately: 99% (1K immediate / 1K locks)
[!!] InnoDB data size / buffer pool: 61.8M/8.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Variables to adjust:
key_buffer_size (> 1.2G)
innodb_buffer_pool_size (>= 61M)
_______________________________
| Engine | Support | Comment |
+------------+----------+----------------------------------------------------------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys |
| BerkeleyDB | DISABLED | Supports transactions and page-level locking |
| BLACKHOLE | NO | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE | NO | Example storage engine |
| ARCHIVE | NO | Archive storage engine |
| CSV | NO | CSV storage engine |
| ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
| FEDERATED | NO | Federated MySQL storage engine |
| MRG_MYISAM | YES | Collection of identical MyISAM tables |
| ISAM | NO | Obsolete storage engine |
+------------+----------+----------------------------------------------------------------+
12 rows in set (0.01 sec)
Отредактированно Jabali (01.07.2010 12:42:47)
Неактивен
Перестаньте пользоваться поделками, приводите вывод нормальных запросов
Должно быть
в SHOW ENGINES: InnoDB YES,
в SHOW VARIABLES LIKE 'innodb_buffer_pool_size': нормальное число.
Неактивен
Я этим то не умею пользоваться не то что подделками....
вот
-bash-3.1# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 22418
Server version: 5.0.77 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> SHOW ENGINES
-> ;
+------------+----------+----------------------------------------------------------------+
| Engine | Support | Comment |
+------------+----------+----------------------------------------------------------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys |
| BerkeleyDB | DISABLED | Supports transactions and page-level locking |
| BLACKHOLE | NO | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE | NO | Example storage engine |
| ARCHIVE | NO | Archive storage engine |
| CSV | NO | CSV storage engine |
| ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
| FEDERATED | NO | Federated MySQL storage engine |
| MRG_MYISAM | YES | Collection of identical MyISAM tables |
| ISAM | NO | Obsolete storage engine |
+------------+----------+----------------------------------------------------------------+
12 rows in set (0.00 sec)
mysql> Aborted
-bash-3.1#
вот они 8 mb и не меняются никак
mysql> SHOW VARIABLES LIKE 'innodb_buffer_pool_size'
-> ;
+-------------------------+---------+
| Variable_name | Value |
+-------------------------+---------+
| innodb_buffer_pool_size | 8388608 |
+-------------------------+---------+
1 row in set (0.00 sec)
Неактивен
Уху, а теперь удалите [innodb] из конфига и перезагрузите. Настройки должны
стоять в разделе [mysqld].
Неактивен
paulus написал:
Уху, а теперь удалите [innodb] из конфига и перезагрузите. Настройки должны
стоять в разделе [mysqld].
my,cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
key_buffer=364M
table_cache=512
read_buffer=128K
sort_buffer=1M
join_buffer_size=2M
max_connections=110
wait_timeout=10
max_connect_errors=10
query_cache_limit=1M
query_cache_size=128M
query_cache_type=1
tmp_table_size=256M
thread_cache_size=4
connect_timeout=10
interactive_timeout=120
#skip-innodb
skip-bdb
innodb_additional_mem_pool_size=16M
innodb_buffer_pool_size=1024M
innodb_data_file_path=ibdata1:10M:autoextend
innodb_file_io_threads=4
innodb_thread_concurrency=16
innodb_log_buffer_size=8M
innodb_log_file_size=256M
innodb_log_files_in_group=3
innodb_max_dirty_pages_pct=90
innodb_lock_wait_timeout=120
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Сделал вот результат
mysql> show engines
-> ;
+------------+----------+----------------------------------------------------------------+
| Engine | Support | Comment |
+------------+----------+----------------------------------------------------------------+
| MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance |
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables |
| InnoDB | DISABLED | Supports transactions, row-level locking, and foreign keys |
| BerkeleyDB | DISABLED | Supports transactions and page-level locking |
| BLACKHOLE | NO | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE | NO | Example storage engine |
| ARCHIVE | NO | Archive storage engine |
| CSV | NO | CSV storage engine |
| ndbcluster | NO | Clustered, fault-tolerant, memory-based tables |
| FEDERATED | NO | Federated MySQL storage engine |
| MRG_MYISAM | YES | Collection of identical MyISAM tables |
| ISAM | NO | Obsolete storage engine |
+------------+----------+----------------------------------------------------------------+
12 rows in set (0.00 sec)
mysql>
а при попытки обратится к базе форума
General Error
SQL ERROR [ mysqli ]
Incorrect information in file: './mfora7d/phpbb_config.frm' [1033]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
а значение буффера выставила как в настройках
mysql> SHOW VARIABLES LIKE 'innodb_buffer_pool_size'
-> ;
+-------------------------+------------+
| Variable_name | Value |
+-------------------------+------------+
| innodb_buffer_pool_size | 1073741824 |
+-------------------------+------------+
1 row in set (0.00 sec)
сразу скажу что mYSQL я сегодня уже сносил (и сильно
этого напугался)
yum remove mysql
и возврашалyum instal php-mysql mysql mysql-server
Отредактированно Jabali (01.07.2010 15:03:11)
Неактивен
Аха, хорошо. Теперь закомментируйте строки
innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_file_size=256M
innodb_log_files_in_group=3
Вообще, не стоит менять параметры, если не знаете, что они делают
Неактивен