Re: Problem with having

2013-09-23 Thread Ananda Kumar
select recipe_id,max(maxdatetime) from data_csmeta group by recipe_id having recipe_id=19166; On Mon, Sep 23, 2013 at 4:15 PM, shawn green wrote: > Hi Larry, > > > On 9/23/2013 3:58 PM, Larry Martell wrote: > >> On Mon, Sep 23, 2013 at 1:51 PM, Sukhjinder K. Narula >> wrote: >> >> Hi, >>> >>> I

Re: replication newbie questions

2013-08-28 Thread Ananda Kumar
if i u have LVM's then lock is held only for the duration of taking snapshot, which would be few min, if there is very less activity on the db. On Wed, Aug 28, 2013 at 3:08 PM, Ed L. wrote: > On 8/28/13 2:00 PM, Ananda Kumar wrote: > > > Why don't u try snapshot backup

Re: replication newbie questions

2013-08-28 Thread Ananda Kumar
Why don't u try snapshot backups, where the lock held for less duration. Or can't u take mysql dumps during Night time when there is less bd activity On Thursday, August 29, 2013, Ed L. wrote: > > Mysql newbie here, looking for some help configuring 5.0.45 master-slave replication. Here's my sce

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Ananda Kumar
oomsToSell',4,4, NOW()); > SELECT * FROM tempHotelRateAvailability; > > > On Wed, May 29, 2013 at 2:57 PM, Ananda Kumar wrote: > >> did u check if data is getting inserted into tempHotelRateAvailability >> >> >> On Wed, May 29, 2013 at 7:21 PM, Nei

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Ananda Kumar
s call in the Trigger and change a value in the table > it works fine; > > INSERT INTO AuditTrail > (AuditTrailId,UserId,ActionType,TableName,RowKey,FieldName,OldValue,NewValue, > LoggedOn) > VALUES (UUID(),1,'UPDATE','HotelRateAvailability', 1,'RoomsToSell',

Re: Temporary Tables with Triggers Problem

2013-05-29 Thread Ananda Kumar
can you please share the code of the trigger. Any kind of error your getting On Wed, May 29, 2013 at 6:49 PM, Neil Tompkins wrote: > Hi, > > I've a trigger that writes some data to a temporary table; and at the end > of the trigger writes all the temporary table data in one insert to our > norm

Re: Mesaure query speed and InnoDB pool

2013-04-16 Thread Ananda Kumar
Does your query use proper indexes. Does your query scan less number blocks/rows can you share the explain plan of the sql On Tue, Apr 16, 2013 at 2:23 PM, Ilya Kazakevich < ilya.kazakev...@jetbrains.com> wrote: > Hello, > > I have 12Gb DB and 1Gb InnoDB pool. My query takes 50 seconds when it r

ERROR 1005 (HY000): Can't create table 'user_database.user_table' (errno: 157)

2013-04-15 Thread Sai Kumar Ganji
Hello Guys, I am trying to setup a mysql-cluster with two data nodes and one management node. The sequence of step I followed are: Ran *'ndb_mgmd' *on management node Ran '*ndbd --initial' *on both the data nodes Ran '*mysqld' *on both the data nodes Then the status of the cluster on manageme

Re: Reg: MYSQL Mail Agent

2013-04-08 Thread Bharani Kumar
When i use mssql, i used the mail agent, so similar one expecting in MYSQL, On Mon, Apr 8, 2013 at 4:02 PM, Johan De Meersman wrote: > - Original Message - > > From: "Bharani Kumar" > > > > How to enable mail agent service in MYSQL. and what are the n

Re: Re: Retrieve most recent of multiple rows

2013-03-14 Thread Ananda Kumar
rsh > Stefan > > > On Wed, Mar 13, 2013 at 8:28 PM, Johan De Meersman >wrote: > > > -- > > > > *From: *"Ananda Kumar" > > *Subject: *Re: Retrieve most recent of multiple rows > > > > > > > > select qid,max(atimestamp) from

Re: Retrieve most recent of multiple rows

2013-03-14 Thread Ananda Kumar
not all the rows, only the distinct q_id, On Wed, Mar 13, 2013 at 8:28 PM, Johan De Meersman wrote: > -- > > *From: *"Ananda Kumar" > *Subject: *Re: Retrieve most recent of multiple rows > > > > select qid,max(atimestamp) from kkk

Re: Retrieve most recent of multiple rows

2013-03-13 Thread Ananda Kumar
can you please share the sql that you executed to fetch the above data On Wed, Mar 13, 2013 at 7:19 PM, Johan De Meersman wrote: > - Original Message - > > From: "Norah Jones" > > Subject: Retrieve most recent of multiple rows > > > > 4 10Male3 1363091019 >

Re: Retrieve most recent of multiple rows

2013-03-13 Thread Ananda Kumar
select * from tab where anwer_timestamp in (select max(anwer_timestamp) from tab where q_id in (select distinct q_id from tab) group by q_id); On Wed, Mar 13, 2013 at 6:48 PM, Norah Jones wrote: > I have a table which looks like this: > > answer_id q_id answer qscore_id answer_timestamp

Re: Retrieve most recent of multiple rows

2013-03-13 Thread Ananda Kumar
) -- --- 11 13-MAR-13 02.04.04.00 PM 10 13-MAR-13 02.03.36.00 PM 12 13-MAR-13 02.03.48.00 PM On Wed, Mar 13, 2013 at 7:28 PM, Ananda Kumar wrote: > can you please share the sql that you executed to fetch the above d

Re: mysql Ver 14.12 Distrib 5.0.27 user privileges question

2013-02-27 Thread Prabhat Kumar
BY PASSWORD > '*4EF5..6' | > | GRANT SELECT, INSERT, UPDATE, DELETE ON `mydb`.* TO 'myuserid'@'%' > | > > +---+ > 2 rows in set (0.00 sec) > > mys

Re: MySQL Connection Information

2012-11-14 Thread Prabhat Kumar
gt; > > false > false > false > > EN-US > X-NONE > AR-SA > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: How to verify mysqldump files

2012-11-07 Thread Ananda Kumar
you can use checksum to make sure there are not corruption in the file On Wed, Nov 7, 2012 at 6:39 PM, Claudio Nanni wrote: > Gary, > > It is always a good practice to test the whole solution backup/restore. > So nothing is better than testing a restore, actually it should be a > periodic procedu

Re: Dumping drupal databases

2012-10-30 Thread Ananda Kumar
why dont u create a softlink On Tue, Oct 30, 2012 at 11:05 PM, Tim Johnson wrote: > * Reindl Harald [121030 08:49]: > > >The drupal mysql datafiles are located at > > > /Applications/drupal-7.15-0/mysql/data > > > > > > as opposed to /opt/local/var/db/mysql5 for > > > 'customary' mysql. > > > >

Re: error 13

2012-10-19 Thread Ananda Kumar
ke on any other unix machine. > > how did i connect mysql to what exactly? > > > > On 10/18/12 6:42 AM, Ananda Kumar wrote: > >> how did u connect mysql on your laptop >> >> On Thu, Oct 18, 2012 at 1:19 AM, kalin > <mailto:ka...@el.net>> wrote:

Re: error 13

2012-10-18 Thread Ananda Kumar
; but i still don't get the necessity of "local". i have never used it > before. > > this is all on os x - 10.8.2... > > > > > On 10/17/12 1:25 PM, Ananda Kumar wrote: > >> also try using "load data local infile 'file path' and see if

Re: error 13

2012-10-17 Thread Ananda Kumar
also try using "load data local infile 'file path' and see if it works On Wed, Oct 17, 2012 at 10:52 PM, Ananda Kumar wrote: > does both directory have permission "777" > > > On Wed, Oct 17, 2012 at 9:27 PM, Rick James wrote: > >> SELinux ? >&

Re: error 13

2012-10-17 Thread Ananda Kumar
does both directory have permission "777" On Wed, Oct 17, 2012 at 9:27 PM, Rick James wrote: > SELinux ? > > > -Original Message- > > From: Lixun Peng [mailto:pengli...@gmail.com] > > Sent: Tuesday, October 16, 2012 9:03 PM > > To: kalin > > Cc: Michael Dykman; mysql@lists.mysql.com > >

Re: Temporary table creation fails

2012-09-10 Thread Ananda Kumar
> I have also gone through the firewall settings and that is only rules for > connections. > > > > > > On 09/10/2012 02:40 PM, Ananda Kumar wrote: > > did u check if there any firewall settings, forbidding you to create > files, check if " SELinux is disable

Re: Temporary table creation fails

2012-09-10 Thread Ananda Kumar
gt; > we have even tried to create a temp table with only one field in order > to insert one row for testing, but we are currently not able to create any > temporary tables whatsoever as even the simplest form of table still gives > the same error. > > Regards > > > &

Re: Temporary table creation fails

2012-09-10 Thread Ananda Kumar
this temp table will hold how many rows, what would be its size. On Mon, Sep 10, 2012 at 5:03 PM, Machiel Richards - Gmail < machiel.richa...@gmail.com> wrote: > Hi, > We confirmed that the /tmp directory permissions is set to rwxrwxrwxt > and is owned by root , the same as all our other serv

Re: Temporary table creation fails

2012-09-10 Thread Ananda Kumar
start with 500MB and try On Mon, Sep 10, 2012 at 3:31 PM, Machiel Richards - Gmail < machiel.richa...@gmail.com> wrote: > Hi, the sort_buffer_size was set to 8Mb as well as 32M for the session > (currently 1M) and retried with same result. > > > > > > On 09/10/201

Re: Temporary table creation fails

2012-09-10 Thread Ananda Kumar
other transactions overwrite the info, or there is nothing logged. > > We even tried running the create statement and immediately running > Show innodb status, but nothing for that statement. > > Regards > > > > > > On 09/10/2012 11:05 AM, Ananda Kumar wrote: &g

Re: Temporary table creation fails

2012-09-10 Thread Ananda Kumar
try this command and see if you can get more info about the error show innodb status\G On Mon, Sep 10, 2012 at 2:25 PM, Machiel Richards - Gmail < machiel.richa...@gmail.com> wrote: > Hi All > > I am hoping someone can point me in the right direction. > > We have a mysql 5.0 database whi

Re: Replication setup hep

2012-08-01 Thread Ananda Kumar
if the server is offline , what kind of operation happens on it. On Thu, Aug 2, 2012 at 11:31 AM, Pothanaboyina Trimurthy < skd.trimur...@gmail.com> wrote: > Hi everyone > i have 4 mysql servers out of those one server will > be online always and the remaining will be offline and

Re: facing problem in MYSQL

2012-07-28 Thread Prabhat Kumar
For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
eb Ananda Kumar: > > so. its more of inactive connections, right. > > What do you mean by NEVER LOGOUT > > > > The programms watch certain states in the database, > the connect automatic at db startup, disconnecting > is an error case. > > re, > wh > > &g

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
so. its more of inactive connections, right. What do you mean by NEVER LOGOUT On Mon, Jul 23, 2012 at 8:17 PM, walter harms wrote: > > > Am 23.07.2012 16:37, schrieb Ananda Kumar: > > why dont u setup a staging env, which is very much similar to your > > production and tune

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
why dont u setup a staging env, which is very much similar to your production and tune all long running sql On Mon, Jul 23, 2012 at 8:02 PM, walter harms wrote: > > > Am 23.07.2012 16:10, schrieb Ananda Kumar: > > you can check the slow query log, this will give you all the sql&

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
you can check the slow query log, this will give you all the sql's which are taking more time to execute On Mon, Jul 23, 2012 at 7:38 PM, walter harms wrote: > > > Am 23.07.2012 15:47, schrieb Ananda Kumar: > > you can set this is in application server. > > You can

Re: restrict Connect Time

2012-07-23 Thread Ananda Kumar
you can set this is in application server. You can also set this parameter in my.cnf wait_timeout=120 in seconds. But the above parameter is only for inactive session On Mon, Jul 23, 2012 at 6:18 PM, walter harms wrote: > Hi list, > is there a switch where i can restrict the connect/execution t

Re: Finding Rows With Common Items

2012-07-12 Thread Ananda Kumar
SQL> select * from orddd; ORDERID PRODID -- -- 2 5 1 3 1 2 2 7 1 5 SQL> select prodid,count(*) from orddd group by PRODID having count(*) > 1; PRODID COUNT(*) -- --

Re: why does "select * from table oder by indexed_field" not use key?

2012-07-11 Thread Ananda Kumar
column used in the order by caluse, should be the first column in the select statement to make the index work On Wed, Jul 11, 2012 at 3:16 PM, Reindl Harald wrote: > > > Am 11.07.2012 11:43, schrieb Ewen Fortune: > > Hi, > > > > On Wed, Jul 11, 2012 at 10:31 AM, Reindl Harald > wrote: > >> the m

Re: Query take too long time - please help!

2012-07-10 Thread Ananda Kumar
you are using a function-LOWER, which will not make use of the unique key index on ksd. Mysql does not support function based index, hence your query is doing a FULL TABLE scan and taking more time. On Tue, Jul 10, 2012 at 4:46 PM, Darek Maciera wrote: > 2012/7/10 Ananda Kumar : > > c

Re: Query take too long time - please help!

2012-07-10 Thread Ananda Kumar
can u show the explain plan for your query On Tue, Jul 10, 2012 at 2:59 PM, Darek Maciera wrote: > Hello, > > I have table: > > mysql> DESCRIBE books; > > |id |int(255) | NO | PRI | > NULL | auto_increment | > | idu

Re: Indexing about 40 Billion Entries

2012-06-20 Thread Ananda Kumar
looks like the value that you give for myisam_max_sort_size is not enough for the index creation and hence it doing a "REPAIR WITH KEYCACHE" Use the below query to set the min values required for myisam_max_sort_size to avoid "repair with keycache" select a.index_name as index_name,

Re: mysqldump not escaping single quotes in field data

2012-06-16 Thread Ananda Kumar
mysqldump --databases test --tables ananda > test.dmp mysql> show create table ananda\G; *** 1. row *** Table: ananda Create Table: CREATE TABLE `ananda` ( `id` int(11) DEFAULT NULL, `name` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT

Re: mysqldump not escaping single quotes in field data

2012-06-15 Thread Ananda Kumar
I have mysql 5.5. I am able to use mysqldump to export data with quotes and the dump had escape character as seen below LOCK TABLES `ananda` WRITE; /*!4 ALTER TABLE `ananda` DISABLE KEYS */; INSERT INTO `ananda` VALUES (1,'ananda'),(2,'aditi'),(3,'thims'),(2,'aditi'),(3,'thims'),(2,'aditi'),(3

Re: console input

2012-06-14 Thread Ananda Kumar
Did you try using "IGNORE" keyword while using the LOAD DATAFILE command. This will ignore duplicate rows from getting inserted and proceed further. On Fri, Jun 15, 2012 at 11:05 AM, Keith Keller < kkel...@wombat.san-francisco.ca.us> wrote: > On 2012-06-14, Gary Aitken wrote: > > > > So... I wa

Re: Is there any performance difference, maintaining separate ibdata files for each and every table insted of having one singl tabale for all databases.

2012-06-14 Thread Prabhat Kumar
unsubscribe:http://lists.mysql.com/mysql > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: NoSQL help

2012-06-14 Thread Ananda Kumar
> xl > > ref > > idx_unique_key_ib_xml\,index_message_id > > idx_unique_key_ib_xml > > 153 > > reports.pl.Message_Id > > 1 > > Using where > > ** ** > > Sorry for the previous mail….. this is my execution plan

Re: NoSQL help

2012-06-14 Thread Ananda Kumar
t. In my database I am having 8 innodb tables and at the same time > I am joining 4 tables to get the report. > > I am maintaining 60days records because the user will try to generate the > report out of 60 days in terms of second, minute, hourly, weekly and > Monthly report also. >

Re: i need advice on redundancy of mysql server.

2012-06-13 Thread Prabhat Kumar
ives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: NoSQL help

2012-06-13 Thread Ananda Kumar
Did you try with myisam tables. They are supposed to be good for reporting requirement On Wed, Jun 13, 2012 at 11:52 PM, Rick James wrote: > I'll second Johan's comments. > > "Count the disk hits!" > > One minor change: Don't store averages in the summary table; instead > store the SUM(). That

Re: Aborted clients

2012-06-13 Thread Ananda Kumar
is iptables service running on db server, if yes, trying stopping it and check On Wed, Jun 13, 2012 at 5:04 PM, Claudio Nanni wrote: > 2012/6/13 Johan De Meersman > > > > > - Original Message - > > > From: "Claudio Nanni" > > > > > > @Johan, you say "I'm having trouble with clients abor

Re: Aborted clients

2012-06-12 Thread Ananda Kumar
or you can check application logs to see why the client lost connectivity from the app On Tue, Jun 12, 2012 at 5:12 PM, Ananda Kumar wrote: > is there anything you can see in /var/log/messages > > > On Tue, Jun 12, 2012 at 5:08 PM, Claudio Nanni wrote: > >> Johan, >>

Re: Aborted clients

2012-06-12 Thread Ananda Kumar
is there anything you can see in /var/log/messages On Tue, Jun 12, 2012 at 5:08 PM, Claudio Nanni wrote: > Johan, > > "Print out warnings such as Aborted connection... to the error log." > the dots are not telling if they comprise Aborted clients as well. > I find the MySQL error log extremely po

Re: i need advice on redundancy of mysql server.

2012-06-11 Thread Ananda Kumar
when u say redudency. Do u just want replication like master-slave, which will be active-passive or Master-master which be active-active. master-slave, will work just a DR, when ur current master fails you can failover the slave, with NO LOAD balancing. Master-master allows load balancing. On Mo

Re: Architectural Help

2012-05-30 Thread Prabhat Kumar
e in > > central server. > > > > > > How can we achive this ? solution needs very much real time data > > accepting nework lags. > > > > > > Solution > > > > Collect all changes in other 49 server into 1 central server(How can we > > collect data) > > > > > > 49 keeps updating data into local database from central server(Using > > Repliation Can be done) > > > > > > > > --Anupam > > > > -- > > MySQL General Mailing List > > For list archives: http://lists.mysql.com/mysql To unsubscribe: > > http://lists.mysql.com/mysql > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Need help for performance tuning with Mysql

2012-05-30 Thread Prabhat Kumar
: my.cnf information > > >> # mysqlext_20120522131034.log : variable and status information from > > >> mysqladmin > > >> > > >> I have 2 database working with high load. > > >> > > >> I wanted to speed up my s

Re: Architectural Help

2012-05-24 Thread Ananda Kumar
is the central database server just ONE server, to which all your 50 data center app connects On Thu, May 24, 2012 at 2:47 PM, Anupam Karmarkar wrote: > Hi All, > > > I need architectural help for our requirement, > > > We have nearly 50 data centre through out different cities from these data >

Re: Need help for performance tuning with Mysql

2012-05-23 Thread Ananda Kumar
Hi, How much ever tuning you do at my.cnf will not help much, if you do not tune your sql's. Your first priority should be tune sql's, which will give you good performance even with decent memory allocations and other settings regards anandkl On Wed, May 23, 2012 at 3:45 PM, Andrew Moore wrote:

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
or it could be that your buffer size is too small, as mysql is spending lot of CPU time for compress and uncompressing On Tue, May 22, 2012 at 5:45 PM, Ananda Kumar wrote: > Is you system READ intensive or WRITE intensive. > If you have enable compression for WRITE intensive data, then CP

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
Is you system READ intensive or WRITE intensive. If you have enable compression for WRITE intensive data, then CPU cost will be more. On Tue, May 22, 2012 at 5:41 PM, Johan De Meersman wrote: > > > - Original Message - > > From: "Reindl Harald" > > > > interesting because i have here a d

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
yes, Barracuda is limited to FILE_PER_TABLE. Yes, true there is CPU cost, but very less. To gain some you have to loss some. On Tue, May 22, 2012 at 5:07 PM, Johan De Meersman wrote: > -- > > *From: *"Ananda Kumar" > > > yes, there some

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
yes, there some new features you can use to improve performance. If you are using mysql 5.5 and above, with files per table, you can enable BARACUDA file format, which in turn provides data compression and dynamic row format, which will reduce IO. For more benefits read the doc On Tue, May 22, 20

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
table and > doing the optimization will reduce the size of the datafile size ? If yes, > then why this not possible on the datafile (one single file) too ? > * > * > *thanks & regards,* > *__* > Kishore Kumar Vaishnav > * > * > On Tue, May 22, 2012

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
On Tue, May 22, 2012 at 2:58 PM, Kishore Vaishnav wrote: > Right now one tablespace datafile. But does it matters if i have one file > per table. > > *thanks & regards, > ______* > Kishore Kumar Vaishnav > * > * > On Tue, May 22, 2012 at 2:56 PM, Ananda K

Re: Reducing ibdata1 file size

2012-05-22 Thread Ananda Kumar
d why can't > it gets decreased ? > > *thanks & regards, > __* > Kishore Kumar Vaishnav > * > * > On Tue, May 22, 2012 at 1:40 PM, Claudio Nanni >wrote: > > > Kishore, > > No, as already explained, it is not possible, Innodb datafiles *nev

Re: Foreign key and uppercase / lowercase values

2012-05-16 Thread Ananda Kumar
why are not using any where condition in the update statment On Wed, May 16, 2012 at 1:24 PM, GF wrote: > Good morning, > I have an application where the user ids were stored lowercase. > Some batch import, in the user table some users stored a uppercase > id, and for some applicative logic, in

Re: Mysql is toying me... why sometimes an insert or update can be slow!? I getting bald cuz this

2012-05-14 Thread Ananda Kumar
I used to have these issues in mysql version 5.0.41. On Mon, May 14, 2012 at 8:13 PM, Johan De Meersman wrote: > - Original Message - > > From: "Ananda Kumar" > > > > If numeric, then why are u using quotes. With quotes, mysql will > > igno

Re: Mysql is toying me... why sometimes an insert or update can be slow!? I getting bald cuz this

2012-05-14 Thread Ananda Kumar
r now dev team is > updating the batch process from long secuencial process with huge slow > inserts, to small parallel task with burst of inserts... > > > > > On Mon, May 14, 2012 at 8:18 AM, Ananda Kumar wrote: > >> is accountid a number or varchar column >> &g

Re: Mysql is toying me... why sometimes an insert or update can be slow!? I getting bald cuz this

2012-05-14 Thread Ananda Kumar
is accountid a number or varchar column On Sat, May 12, 2012 at 7:38 PM, Andrés Tello wrote: > While doning a batch process... > > show full processlist show: > > | 544 | prod | 90.0.0.51:51262 | tmz2012 | Query |6 | > end | update `account` set `balance`= 0.00 + >

Re: Why is creating indexes faster after inserting massive data rows?

2012-05-07 Thread Ananda Kumar
which version of mysql are you using. Is this secondary index.? On Mon, May 7, 2012 at 12:07 PM, Zhangzhigang wrote: > hi all: > > I have a question: > > Creating indexes after inserting massive data rows is faster than before > inserting data rows. > Please tell me why. >

Re: MySQL Crash when Open_files reach 128

2012-05-02 Thread vishesh kumar
ion you have to restart the Server. > > > > Am 02.05.2012 um 13:58 schrieb vishesh kumar : > > > I am getting following in error log > > > > >

Re: MySQL Crash when Open_files reach 128

2012-05-02 Thread vishesh kumar
:56:04 mysqld ended - Thanks ~Vishesh On Wed, May 2, 2012 at 4:54 PM, vishesh kumar wrote: > Thanks for response . > > I didn't set any open_files limit

Re: MySQL Crash when Open_files reach 128

2012-05-02 Thread vishesh kumar
Thanks for response . I didn't set any open_files limit in my.cnf . For testing i set open_files_limit to 300 but still MySQL crashing after 128. ~Vishesh On Wed, May 2, 2012 at 4:28 PM, Reindl Harald wrote: > > > Am 02.05.2012 12:52, schrieb vishesh kumar: > > Hi Members

Re: update query

2012-04-30 Thread Ananda Kumar
Do you just want to replace current value in client column to "NEW". You can write a stored proc , with a cursor and loop through the cursor, update each table. regards anandkl On Mon, Apr 30, 2012 at 2:47 PM, Pothanaboyina Trimurthy < skd.trimur...@gmail.com> wrote: > Hi all, > i have one

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

2012-04-11 Thread Prabhat Kumar
did you check permission of file /var/run/mysqld/mysqld.sock On Wed, Apr 11, 2012 at 9:48 AM, Larry Martell wrote: > On Wed, Apr 11, 2012 at 2:51 AM, Ganesh Kumar wrote: > > Hi Guys, > > > > I am using debian squeeze it's working good, I am trying to install >

Re: Error in starting MySQL service on LINUX

2012-04-05 Thread Prabhat Kumar
ou are notified that any dissemination, distribution or copying of this > email is strictly prohibited. If you have received this email in error, > please notify us immediately by return email or to > mailad...@spanservices.com and destroy the original message. Opinions, > conclusions and other information in this message that do not relate to the > official business of SPAN, shall be understood to be neither given nor > endorsed by SPAN. > > > > > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/mysql > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: parsing a .sql file

2011-11-14 Thread Prabhat Kumar
> > /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; > /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; > /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; > /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; > /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; > > -- Dump completed on 2011-04-18 4:14:26 > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: "InnoDB free" - What does it really mean?

2011-11-10 Thread Prabhat Kumar
gt; > Kay Rozeboom > Information Technology Enterprise > Iowa Department of Administrative Services > Telephone: 515.281.6139 Fax: 515.281.6137 > Email: kay.rozeb...@iowa.gov > > > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Reusing "ibdata1" space

2011-11-10 Thread Prabhat Kumar
drinkt, is eene kwezel > Hy die't drinkt, is ras een ezel > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Relication Issues

2011-11-10 Thread Prabhat Kumar
; a better way to do live backups, or have a hot space in the event of a > > > catastrophe? Is there 3rd party software that would better achieve > data > > > integrity or something? > > > > > > Any help here would be appreciated. > > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Deleting Records in Big tables

2011-11-04 Thread Ananda Kumar
Create PROCEDURE qrtz_purge() BEGIN declare l_id bigint(20); declare NO_DATA INT DEFAULT 0; DECLARE LST_CUR CURSOR FOR select id from table_name where id> 123; DECLARE CONTINUE HANDLER FOR NOT FOUND SET NO_DATA = -1; OPEN LST_CUR; SET NO_DATA = 0; FETCH LST_CUR INTO l_id; WH

Re: Deleting Records in Big tables

2011-11-04 Thread Ananda Kumar
Why dont you create a new table where id < 2474, rename the original table to "_old" and the new table to actual table name. or You need to write a stored proc to loop through rows and delete, which will be faster. Doing just a simple "delete" statement, for deleting huge data will take ages. re

Re: [question]any performance tools about UPDATE

2011-09-23 Thread Prabhat Kumar
o monitor the UPDATE/INSERT performance, check out if there's any > performance bottleneck, for example: > slow INSERT/UPDATE > more I/O where execute INSERT > > Regards > > Thanks > J.W > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.

Re: mysqldump: Got error: 1017: Can't find file: './ssconsole/ss_requestmaster.frm' (errno: 24) when using LOCK TABLES

2011-09-23 Thread Prabhat Kumar
top accessing some tables to open others. > > http://dev.mysql.com/doc/refman/5.5/en/not-enough-file-handles.html > > -- >Dan Nelson >dnel...@allantgroup.com > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To un

Re: Slower performance with LOCK TABLES

2011-09-22 Thread Ananda Kumar
hours when I do use LOCK TABLES. > > -Hank > > > > On Thu, Sep 22, 2011 at 2:18 PM, Ananda Kumar wrote: > >> May be if u can let the audience know a sip-net of ur sql, some can help u >> >> >> On Thu, Sep 22, 2011 at 11:43 PM, Hank wrote: >> >>

Re: query optimization

2011-09-22 Thread Ananda Kumar
Your outer query "select cpe_mac,max(r3_dt) from rad_r3cap", is doing a full table scan, you might want to check on this and use a "WHERE" condition to use indexed column On Fri, Sep 23, 2011 at 12:14 AM, supr_star wrote: > > > I have a table with 24 million rows, I need to figure out how to op

Re: Slower performance with LOCK TABLES

2011-09-22 Thread Ananda Kumar
May be if u can let the audience know a sip-net of ur sql, some can help u On Thu, Sep 22, 2011 at 11:43 PM, Hank wrote: > > Sorry, but you do not understand my original issue or question. > > -Hank > > > > On Thu, Sep 22, 2011 at 2:10 PM, Ananda Kumar wrote: > &g

Re: Slower performance with LOCK TABLES

2011-09-22 Thread Ananda Kumar
mmit. > > > > > On Thu, Sep 22, 2011 at 1:48 PM, Ananda Kumar wrote: > >> Hi, >> Why dont u use a stored proc to update rows ,where u commit for every 1k >> or 10k rows. >> This will be much faster than ur individual update stmt. >> >> regards &

Re: Slower performance with LOCK TABLES

2011-09-22 Thread Ananda Kumar
Hi, Why dont u use a stored proc to update rows ,where u commit for every 1k or 10k rows. This will be much faster than ur individual update stmt. regards anandkl On Thu, Sep 22, 2011 at 8:24 PM, Hank wrote: > That is what I'm doing. I'm doing a correlated update on 200 million > records. One U

Re: Can I Develop using Community Edition and Deploy onto Enterprise Edition??

2011-09-21 Thread Prabhat Kumar
advise the sender immediately by > e-mail > or by telephone and then to delete this e-mail. > Vox Orion accepts no liability for any loss, expense or damage > arising from this e-mail and/or any attachments. > > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Questions about Mysqldump

2011-09-15 Thread Ananda Kumar
or u can use "for loop", have only the database to be exported and use that variable in --database and do mysqldump of each database. On Thu, Sep 15, 2011 at 6:27 PM, Carsten Pedersen wrote: > On 15-09-2011 10:31, Chris Tate-Davies wrote: > >> Adarsh, >> >> 1) >> >> When restoring a mysqldump you

Moving database from one machine to another machine..

2011-09-14 Thread Prabhat Kumar
abhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: optimising for 100000 entries

2011-09-14 Thread Ananda Kumar
umber of rows you cite, but it works beautifully and it is quick as > lightning. > > HTH, > Arthur > > > On Wed, Sep 14, 2011 at 9:24 AM, Ananda Kumar wrote: > >> Dr. Doctor, >> What kind of 10 entries? Is it insert,update delete etc. >> >> regards

Re: optimising for 100000 entries

2011-09-14 Thread Ananda Kumar
Dr. Doctor, What kind of 10 entries? Is it insert,update delete etc. regards anandkl On Wed, Sep 14, 2011 at 6:30 PM, The Doctor wrote: > Question: > > How can you optimise MySQL for 10 entires? > > Just running OSCemmerce and it is slow to pull up a who catalogue. > > -- > Member - Libe

Re: strange mysql update ..

2011-09-08 Thread Ananda Kumar
Can you lets us know what is the output of select * from user_info where user_id=16078845; On Thu, Sep 8, 2011 at 1:02 PM, umapathi b wrote: > I wanted to change the login_date of one user . The original data of that > user is like this .. > > select * from user_info where user_id = 16078845 \G

Re: Caution : Hard Disk Full

2011-08-29 Thread Prabhat Kumar
com/mysql > To unsubscribe:http://lists.mysql.com/mysql?** > unsub=aim.prab...@gmail.com<http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com> > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: shall i jump from 5.1 to 5.5

2011-08-16 Thread Prabhat Kumar
which > would have troubles? > > we have upgraded some hundret webspaces and two dbmail-servers > in februray becaus we know our self written applications and > having test-environments, if you can do this can nobody say > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: error log rotation problem

2011-08-12 Thread Prabhat Kumar
ell> mv host_name.err-old backup-directory > > (Bug #29751) > > See also Bug #56821. > " > -- > Paul DuBois > Oracle Corporation / MySQL Documentation Team > Madison, Wisconsin, USA > www.mysql.com > > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Which is better

2011-08-02 Thread Prabhat Kumar
; notify us > immediately at ad...@sifycorp.com > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe: > http://lists.mysql.com/mysql?unsub=aim.prab...@gmail.com > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: about the config file

2011-08-02 Thread Prabhat Kumar
> Thanks. > > > > -- > > MySQL General Mailing List > > For list archives: http://lists.mysql.com/mysql > > To unsubscribe: > http://lists.mysql.com/mysql?unsub=eroomy...@gmail.com > > > > > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: How to view Query Execution time

2011-08-01 Thread Prabhat Kumar
For list archives: http://lists.mysql.com/mysql > > To unsubscribe:http://lists.mysql.com/mysql?** > > unsub=sureshkumar...@gmail.com< > http://lists.mysql.com/mysql?unsub=sureshkumar...@gmail.com> > > > > > > > -- > Thanks > Suresh Kuna > MySQL DBA > -- Best Regards, Prabhat Kumar MySQL DBA My Blog: http://adminlinux.blogspot.com My LinkedIn: http://www.linkedin.com/in/profileprabhat

Re: Schema list

2011-07-27 Thread Ananda Kumar
Is this a production setup. If not, take complete dump of the all databases. Drop the xYZ database, see if you can see all the objects under XYZ. Since the xYZ database is created, its obvious, that names are case sensitive, and it show not show object from XYZ, when u under xYZ. Can you please

  1   2   3   4   5   6   7   8   9   >