На просторах инета наткнулся на интересный скрипт. Вот что он мне выдал, после того как я выполнил его рекомендации.
Показать
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[OK] Logged in using credentials passed on the command line
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.0.92-log
[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: 708K (Tables: 68)
[!!] Total fragmented tables: 3
-------- Security Recommendations -------------------------------------------
[!!] User '@ldap.mgkb1.local' has no password set.
[!!] User '@localhost' has no password set.
[!!] User 'root@127.0.0.1' has no password set.
[!!] User 'root@ldap.mgkb1.local' has no password set.
-------- Performance Metrics -------------------------------------------------
[--] Up for: 9m 47s (2K q [3.639 qps], 156 conn, TX: 12M, RX: 232K)
[--] Reads / Writes: 95% / 5%
[--] Total buffers: 58.0M global + 1.6M per thread (100 max threads)
[OK] Maximum possible memory usage: 214.2M (21% of installed RAM)
[OK] Slow queries: 0% (0/2K)
[OK] Highest usage of available connections: 3% (3/100)
[OK] Key buffer size / total MyISAM indexes: 16.0M/336.0K
[OK] Key buffer hit rate: 97.4% (1K cached / 40 reads)
[OK] Query cache efficiency: 77.7% (1K cached / 1K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 55 sorts)
[OK] Temporary tables created on disk: 20% (13 on disk / 62 total)
[OK] Thread cache hit rate: 98% (3 created / 156 connections)
[OK] Table cache hit rate: 93% (85 open / 91 opened)
[OK] Open file limit used: 16% (172/1K)
[OK] Table locks acquired immediately: 100% (354 immediate / 354 locks)
-------- 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
[/console]
В частности сильно не устраивает
-------- Security Recommendations -------------------------------------------
[!!] User '@ldap.mgkb1.local' has no password set.
[!!] User '@localhost' has no password set.
[!!] User 'root@127.0.0.1' has no password set.
[!!] User 'root@ldap.mgkb1.local' has no password set.
Как мне установить пароли? Команду в консоле скажите плиз.
[console]
mysqladmin root@localhost password "blblbla"[/console] не катит
За основу был взят файл /usr/share/mysql/my-medium.cfg