05-17-2013
Sorry, I don't have quick solutions for what I see in your files.
There are many select statements in state: locked ... Your biggest problem seems to be the storage engine - you're using MyISAM.
You should consider switching to InnoDB, but you should test the migration thoroughly. And you should upgrade to a newer version, 5.1 is may too old.
I suppose your best bet now is to activate the slow log (if I recall correctly, it's dynamic in 5.1) and try to tune your queries, to minimize the locking issue.
By the way, why you're using 2G for the InnoDB buffer pool and only 128M for your MyISAM key buffer? Do you have InnoDB tables
(not mentioned in the uploaded files)?
7 More Discussions You Might Find Interesting
1. Linux
Hello,thanks for your help.
I can't connect my MYSQLserver , the note from my Linux System is 'Error 1130 (00000): Host 'my ip address' is not allowed to connect to this MySQL server. What could I do on this?
Thanks again! (4 Replies)
Discussion started by: lancepanda
4 Replies
2. Shell Programming and Scripting
Hi everyone,
I have an urgent requirement to get some table data from Linux-MYSQL server from HP-UX with oracle database.Is there any way we can get
connected through Shell script from HP-UX and issue select on mysql to get some table data?
Please help me out. (7 Replies)
Discussion started by: kashik786
7 Replies
3. Shell Programming and Scripting
hi..
i need to optimize my select query ..
my situation is like this ..
i have 15 lac recors in my table..
the following query takes nine seconds to give the required output..
SELECT max(ah.AUC_AMT),
SUBSTRING_INDEX(GROUP_CONCAT(SUBSTRING_INDEX(ah.AUC_CUS_NAME,'@',1) order by AUC_AMT... (0 Replies)
Discussion started by: senkerth
0 Replies
4. UNIX for Advanced & Expert Users
hi..
i need to optimize my select query ..
my situation is like this ..
i have 15 lac recors in my table..
the following query takes nine seconds to give the required output..
SELECT max(ah.AUC_AMT),
SUBSTRING_INDEX(GROUP_CONCAT(SUBSTRING_INDEX(ah.AUC_CUS_NAME,'@',1) order by AUC_AMT... (1 Reply)
Discussion started by: senkerth
1 Replies
5. Web Development
Hi, we have some problem with mysql high cpu , would like some help with MySQL Tuning
here are the mysqltuner & tuning-primer details
mysqltuner:
# mysqltuner
>> MySQLTuner 1.1.1 - Major Hayden <major@mhtx.net>
>> Run with '--help' for additional options and output filtering
--------... (1 Reply)
Discussion started by: cataplexy
1 Replies
6. Linux
Hi,
I have installed mysql in linux box as mysql-5.0.77-4.el5_6.6..
I would like to start the server. But there is no mysql file in this location /etc/init.d/
Please advice how to start the server now !!
Thnaks,
Mani (5 Replies)
Discussion started by: Mani_apr08
5 Replies
7. UNIX and Linux Applications
Gd evening
I am trying to run my website made in php-mysql on a HP-UX system but dont know how to install and run services of Mysql.
Kindly provide appropriate solution.
thanks in advance. (1 Reply)
Discussion started by: kumar.ashishcs
1 Replies
LEARN ABOUT PHP
mysql_get_server_info
MYSQL_GET_SERVER_INFO(3) 1 MYSQL_GET_SERVER_INFO(3)
mysql_get_server_info - Get MySQL server info
SYNOPSIS
Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should
be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
omysqli_get_server_info(3)
o PDO::getAttribute
string mysql_get_server_info ([resource $link_identifier = NULL])
DESCRIPTION
Retrieves the MySQL server version.
o $
link_identifier -The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect(3) is
assumed. If no such link is found, it will try to create one as if mysql_connect(3) was called with no arguments. If no connection
is found or established, an E_WARNING level error is generated.
Returns the MySQL server version on success or FALSE on failure.
Example #1
mysql_get_server_info(3) example
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
printf("MySQL server version: %s
", mysql_get_server_info());
?>
The above example will output something similar to:
MySQL server version: 4.0.1-alpha
mysql_get_client_info(3), mysql_get_host_info(3), mysql_get_proto_info(3), phpversion(3).
PHP Documentation Group MYSQL_GET_SERVER_INFO(3)