Optimizando mysql principiantes
Debes seguir estos pasos
- Primero vamos a guardar una copia de my.cnf este fichero vale para configurar una serie de parametros del motor de mysql.
cp /etc/my.cnf /etc/my_copia.cnf
- Despues vamos editar el archivo my.cnf para eso escribimos
nano /etc/my.cnf
- Ahora vamos a configurarlo
[mysqld]
set-variable = max_connections=400
safe-show-database
local-infile=0
datadir=/var/lib/mysql
skip-locking
skip-networking
safe-show-database
query_cache_limit=1M
query_cache_size=64M ## 32MB para 1GB of RAM y 64 M para 2
query_cache_type=1
max_user_connections=200
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
thread_cache_size=128
key_buffer=256M ## Si tiene 1 GB de memoria ram pon 128M, 2 2G – 256M
join_buffer=1M
max_connect_errors=20
max_allowed_packet=16M
table_cache=1200
record_buffer=1M
sort_buffer_size=2M ## Aqui debes poner la memoria que tienes y despues una M, es decir si nuestro sistema dispone de 2 gb de memoria ram, ponemos 2M
read_buffer_size=2M ## ## Aqui debes poner la memoria que tienes y despues una M, es decir si nuestro sistema dispone de 2 gb de memoria ram, ponemos 2M
read_rnd_buffer_size=2M ## Aqui debes poner la memoria que tienes y despues una M, es decir si nuestro sistema dispone de 2 gb de memoria ram, ponemos 2M
thread_concurrency=4 ## Multiplicas el número de procesadores por 2, es decir si disponemos de un equipo de 2 procesadores debemos poner 4
myisam_sort_buffer_size=64M
local-infile=0
server-id=1[mysql.server]
user=mysql[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192[mysqldump]
quick
max_allowed_packet=16M[mysql]
no-auto-rehash
#safe-updates[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M[mysqlhotcopy]
interactive-timeout
29 de March, 2012 - 05:58
ms Outlook read OST files…
Optimizando mysql principiantes | LugoInternet – Blog de nuestra empresa…
29 de March, 2012 - 19:09
low vitamin d symptoms…
I appreciate, cause I found exactly what I was looking for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye…
1 de April, 2012 - 15:22
online dating…
That is really interesting, You are a very skilled blogger. I have joined your feed and look forward to in quest of more of your magnificent post. Also, I have shared your site in my social networks!…
2 de April, 2012 - 11:25
mobile dating…
Today, while I was at work, my cousin stole my iphone and tested to see if it can survive a 25 foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is entirely off topic but I had to share it …
29 de April, 2012 - 11:43
dates…
Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish just about gossips and net and this is actually annoying. A good web site with exciting content, that’s what I need. Thanks for keeping this web-site, I’ll be visiting it….
1 de May, 2012 - 15:48
online dating sites…
Thanks for your write-up on this blog. From my experience, there are occassions when softening upwards a photograph may well provide the professional photographer with a bit of an inventive flare. More often than not however, that soft cloud isn’t pre…
3 de May, 2012 - 13:38
How to open Outlook .OST file without connecting to…
Optimizando mysql principiantes | LugoInternet – Blog de nuestra empresa…
4 de May, 2012 - 21:28
dating women…
My brother recommended I might like this website. He was totally right. This post truly made my day. You cann’t imagine just how much time I had spent for this information! Thanks!…