0
$ grep innodb_buffer_pool /etc/my.cnfinnodb_buffer_pool_size = 10G$ echo "show variables like innodb_buffer_pool_size"   |...
CREATE TABLE hoge (    id int unsigned NOT NULL auto_increment primary key,    level tinyint NOT NULL default 1,    KEY le...
mysql> select version();| 4.0.27-log |mysql> explain select id from hoge where level=2 order by id;+-------+------+-------...
my $sth = $dbh->prepare(“SELECT GET_LOCK(?,300)”);$sth->execute(q!injection”!)#110214 15:50:09 server id 53721 log_pos 803...
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Mysql 4.0 casual
Upcoming SlideShare
Loading in...5
×

Mysql 4.0 casual

13,746

Published on

Published in: Business, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
13,746
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript of "Mysql 4.0 casual"

    1. 1. $ grep innodb_buffer_pool /etc/my.cnfinnodb_buffer_pool_size = 10G$ echo "show variables like innodb_buffer_pool_size" | mysql -t+-------------------------+------------+| Variable_name           | Value      |+-------------------------+------------+| innodb_buffer_pool_size | 2147483648 | = 2GB+-------------------------+------------+
    2. 2. CREATE TABLE hoge ( id int unsigned NOT NULL auto_increment primary key, level tinyint NOT NULL default 1, KEY level (level)) Engine=InnoDB;mysql> explain select id from hoge where level=2 order by id;+----+-------------+-------+------+-------+--------------------------+| id | select_type | table | type | key | Extra |+----+-------------+-------+------+-------+--------------------------+| 1 | SIMPLE | hoge | ref | level | Using where; Using index |+----+-------------+-------+------+-------+--------------------------+
    3. 3. mysql> select version();| 4.0.27-log |mysql> explain select id from hoge where level=2 order by id;+-------+------+-------+------------------------------------------+| table | type | key | Extra |+-------+------+-------+------------------------------------------+| hoge | ref | level | Using where; Using index; Using filesort |+-------+------+-------+------------------------------------------+1 row in set (0.00 sec)
    4. 4. my $sth = $dbh->prepare(“SELECT GET_LOCK(?,300)”);$sth->execute(q!injection”!)#110214 15:50:09 server id 53721 log_pos 803 Querythread_id=6 exec_time=0 error_code=0SET TIMESTAMP=1297666209;DO RELEASE_LOCK("injection””)
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×