I have 7 days worth of general log data totalling 4.4GB.
I want to analyze this data to get:
a) queries per second, minute, hour and day
b) a count of the number of selects versus write statements (delete,
insert, replace and update)
c) a variation of the above with select, replace, delete and
Minor correction: The post i point to is about the slow log, but I presume
also relevant for the general log. And the good comments I mentioned come in
the followup posting at http://www.bitbybit.dk/carsten/blog/?p=116
/ Carsten
Thanks Carsten, I read the comments and Sheeri mentions
the master
databases again, re-import to the slave hosts and bootstrap the
slaves.
What is the best way to make this consistent and ensure that
replication continues smoothly after a failover (and failback) event?
Thank you,
Imran Chaudhry
--
MySQL General Mailing List
For list archives: http
GROUP BY
domain
ORDER BY
domain
Thanks again,
Imran Chaudhry
--
Atom Database
A Custom Database Designed for Your Business
[EMAIL PROTECTED]
http://atomdatabase.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL
I'm wondering if any of you can assist with an interesing SQL
query. I have a single table within a database, the relevant fields of
which are defined as:
CREATE TABLE tableA
(
domain text,
mime text
);
Where domain is a domain, such as:
Key 6 relates to the 6th key, or index, in the CREATE TABLE statement
for this table:
PRIMARY KEY (`prod_id`),
UNIQUE KEY `prod_no` (`prod_no`),
KEY `products_index1` (`prod_status`),
KEY `products_index2` (`prod_start_date`,`prod_end_date`),
KEY `on_sale` (`on_sale`),
and time is NULL.
I want to aim for 3NF and this seems ugly solution, there must be an
elegant way to do this?
Thanks,
Imran Chaudhry
--
http://www.atomdatabase.com
MySQL Database Management Design Services
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
|
+++-+---++
5 rows in set (0.00 sec)
Not sure how useful that is. Maybe it is useful if one is frequently
querying a certain table when working on the command line?
Imran Chaudhry
--
http://www.atomdatabase.com
MySQL Database Management Design Services
--
MySQL
Good stuff Peter, can you tell us your solution so folks can benefit
from your efforts?
(I expect the regex has to be POSIX style such as:
mydb./'~(expirations|rtt)'/ right?)
Imran Chaudhry
--
http://www.ImranChaudhry.info
MySQL Database Management Design Services
--
MySQL General Mailing
/mysql is not owned by mysql
If so, as superuser: chown -R mysql:mysql /var/lib/mysql
Regards,
Imran Chaudhry
--
http://www.ImranChaudhry.info
MySQL Database Management Design Services
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http
Thoughts, comments and advice very appreciated
Adrian, just in case your question is out of scope for this crowd...
MySQL have a number of forums and one is 'Embedded MySQL'
http://forums.mysql.com/list.php?58
Hope that helps,
Imran Chaudhry
--
http://www.ImranChaudhry.info
MySQL Database
On 2/1/06, THUFIR HAWAT [EMAIL PROTECTED] wrote:
Just as there's MySQL Query Browser for queries and table design, is
there a similar GUI front end for data entry? I'm not building
anything complex, just a simple database to muck with. Is it easier
to do data entry on a spreadsheet, then
On 1/31/06, Adrian Bruce [EMAIL PROTECTED] wrote:
HI
MySQL 5.0 (windows XP)
I have a problem where i think some of my tables have somehow been
corrupted, if i try to run a check table command against some tables the
mysql service crashes and i have to restart it. I am not sure how this
I am using mysql5.0 on Hp-UX. IT took about 14 hours to insert 1.7 millin
records. How do I make my insert run faster.The table has three foreign key
references and the referencing columns are indexed . Is that impacting the
insert statement performance.
Just thought I'd add a little to
Hi;
My query.log is full of 'show innodb status' queries.
How do I get this ascii log file not to log these. OR some help with a
grep script to copy the file without these lines.
I noticed the same in the logs of a 4.1 test server. I put it down to
MySQL Administrator which was monitoring the
My web hosting server runs PHP 4.4 and MySQL 4.1. But
PHP 4.4 doesn't fully support MySQL 4.1. and i have
problems restoring a utf8 encoded database dumped from
a MySQL 4.0 server to the new 4.1 server. Do i have
any chance to get it working in this setup or should i
persuade the hosting
with the same database
(non-replicated). I would recommend trying the re-index tactic there
first if you havne't already.
Hope that Helps,
Imran Chaudhry
--
http://www.EjectDisc.com
Get your Digital Identity - Domain Names, Web Space, E-mail More!
--
MySQL General Mailing List
For list archives: http
the MailScanner connection at different times of the day?
What interface does MailScanner use to connect? It looks like Perl
DBI, but you may be using ODBC? Finally, can you tell me your perl
version by: perl -v
Imran Chaudhry
--
http://www.EjectDisc.com
Get your Digital Identity - Domain Names
thing, as you're a MySQL admin type writing an access control
app, you want to know when the priv changes take effect. You will
probably find this info useful:
http://dev.mysql.com/doc/refman/5.0/en/privilege-changes.html
Hope that helps,
Imran Chaudhry
--
http://www.EjectDisc.com
Get your
/refman/4.1/en/upgrading-from-3-23.html
I think you'll find the upgrade pretty painless from a data point of
view, but you will need to heed the changes to the GRANT tables.
Imran Chaudhry
--
http://www.EjectDisc.com
Get your Digital Identity - Domain Names, Web Space, E-mail More!
--
MySQL General
is:
perl -Mmodule name -e '' (where module name is perlish name like DBI
or XML::Simple)
It should return silently without errors if it is installed.
Hope that helps,
Imran Chaudhry
--
http://www.EjectDisc.com
Get your Digital Identity - Domain Names, Web Space, E-mail More!
--
MySQL General
. There is potential
for error and you dont want that where security is related. It is
probably worth the pain of learning the ins and outs of
GRANT/REVOKE.
Hope that Helps,
Imran Chaudhry
--
http://www.EjectDisc.com
Get your Digital Identity - Domain Names, Web Space, E-mail More!
--
MySQL General Mailing
Lewis,
As you already have perl installed, an easier way of getting modules
is by way of CPAN (www.cpan.org). Give this a try, as superuser:
cpan install DBI
Regards,
Imran
--
http://www.EjectDisc.com
Get your Digital Identity - Domain Names, Web Space, E-mail More!
--
MySQL General Mailing
23 matches
Mail list logo