Thanks for your reply.
About nohup message, if I can remove it (because I suppose there is something not perfect in installation...) I think it's better.
For 64bits system : I read it using mysqltuner.pl
This server has been installed by a company. I don't know it they do something wrong or not. Maybe it's my fault.
I have to reinstall mysql after an error.
I have 8Go of RAM, and only 4 are used.
Mem: 8276228k total, 4563160k used, 3713068k free, 253540k buffers
Swap: 4200988k total, 0k used, 4200988k free, 2843292k cached
Some big sites are on the server and the previous server, with 4Go used all memory. Traffic comes back now (after 15 days with sites offline), and I have to optimize mysql settings.
I have another problem using tuning-primer.sh
Code:
MEMORY USAGE
./tuning-primer.sh: line 1321: bc: command not found
./tuning-primer.sh: line 1322: bc: command not found
./tuning-primer.sh: line 1346: bc: command not found
./tuning-primer.sh: line 1349: bc: command not found
./tuning-primer.sh: line 1350: bc: command not found
./tuning-primer.sh: line 1352: bc: command not found
./tuning-primer.sh: line 1354: [: -gt: unary operator expected
./tuning-primer.sh: line 459: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 465: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 471: [: max_memoryHR: integer expression expected
./tuning-primer.sh: line 478: export: `=max_memoryHR': not a valid identifier
Max Memory Ever Allocated : bytes
./tuning-primer.sh: line 459: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 465: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 471: [: per_thread_buffersHR: integer expression expected
./tuning-primer.sh: line 478: export: `=per_thread_buffersHR': not a valid identifier
Configured Max Per-thread Buffers : bytes
./tuning-primer.sh: line 459: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 465: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 471: [: global_buffersHR: integer expression expected
./tuning-primer.sh: line 478: export: `=global_buffersHR': not a valid identifier
Configured Max Global Buffers : bytes
./tuning-primer.sh: line 459: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 465: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 471: [: total_memoryHR: integer expression expected
./tuning-primer.sh: line 478: export: `=total_memoryHR': not a valid identifier
Configured Max Memory Limit : bytes
./tuning-primer.sh: line 440: bc: command not found
Physical Memory : G
Max memory limit seem to be within acceptable norms
KEY BUFFER
./tuning-primer.sh: line 754: bc: command not found
./tuning-primer.sh: line 755: bc: command not found
./tuning-primer.sh: line 440: bc: command not found
Current MyISAM index space = M
./tuning-primer.sh: line 440: bc: command not found
Current key_buffer_size = M
Key cache miss rate is 1 : 1928
Key buffer free ratio = %
./tuning-primer.sh: line 792: [: -le: unary operator expected
./tuning-primer.sh: line 796: [: -le: unary operator expected
Your key_buffer_size seems to be fine
QUERY CACHE
./tuning-primer.sh: line 827: bc: command not found
./tuning-primer.sh: line 828: bc: command not found
Query cache is enabled
./tuning-primer.sh: line 440: bc: command not found
Current query_cache_size = M
./tuning-primer.sh: line 440: bc: command not found
Current query_cache_used = M
./tuning-primer.sh: line 440: bc: command not found
Current query_cache_limit = M
Current Query cache Memory fill ratio = %
./tuning-primer.sh: line 440: bc: command not found
Current query_cache_min_res_unit = K
./tuning-primer.sh: line 845: bc: command not found
./tuning-primer.sh: line 846: bc: command not found
./tuning-primer.sh: line 847: [: -gt: unary operator expected
./tuning-primer.sh: line 854: [: -le: unary operator expected
./tuning-primer.sh: line 858: [: -ge: unary operator expected
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
./tuning-primer.sh: line 440: bc: command not found
Current sort_buffer_size = M
./tuning-primer.sh: line 440: bc: command not found
Current read_rnd_buffer_size = K
Sort buffer seems to be fine
JOINS
./tuning-primer.sh: line 440: bc: command not found
Current join_buffer_size = K
You have had 0 queries where a join could not use an index properly
Your joins seem to be using indexes properly
For example : lines 1321 and 1322 are
Code:
per_thread_buffers=$(echo "($read_buffer_size+$read_rnd_buffer_size+$sort_buffer_size+$thread_stack+$join_buffer_size+$binlog_cache_size)*$max_connections" | bc -l)
per_thread_max_buffers=$(echo "($read_buffer_size+$read_rnd_buffer_size+$sort_buffer_size+$thread_stack+$join_buffer_size+$binlog_cache_size)*$max_used_connections" | bc -l)
So probably some "big" details to solve