mysql: systeem info opvragen

Posted by Paul Verreth Mon, 05 Feb 2007 16:00:00 GMT

English version of this quickref

Kort overzicht van de meest nuttige show commando’s voor het opvragen van systeem informatie:

pager less;

show databases;

show tables;

show create database|table database|table;

show [full] processlist; (\G)

show table status;

show status;
show engine innodb status; (\G)

show privileges;
show grants;

show variables;

show warnings;
show error; 

Opmerking:

Output voor de show table status:

Voor innodb: InnoDB free: ... geeft de vrije ruimte in de tablespace.

Posted in  | Tags

mysql: getting system info

Posted by Paul Verreth Mon, 05 Feb 2007 16:00:00 GMT

Nederlandse versie van dit artikel

Shortlist of the most useful show command’s:

pager less;

show databases;

show tables;

show create database|table database|table;

show [full] processlist; (\G)

show table status;

show status;
show engine innodb status; (\G)

show privileges;
show grants;

show variables;

show warnings;
show error; 

Attention:

Output from show table status:

For the innodb engine: InnoDB free: ... : free space in the tablespace.

Posted in  | Tags

Mysql, serial en foreign keys

Posted by Paul Verreth Fri, 19 Jan 2007 14:18:00 GMT

Bij het gebruik van foreign keys is het van belang dat beide velden hetzelfde zijn.

In mysql is serial hetzelfde als bigint unsigned not null auto_increment unique. Het is dan ook belangrijk dat de foreign key een bigint unsigned is.

Read more...

Posted in ,  | Tags

mysql auto_increment of serial

Posted by Paul Verreth Fri, 19 Jan 2007 13:37:00 GMT

Sinds de recentse versies van mysql kan je een auto_increment aanmaken met serial en hoeft BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE dus niet meer.

create table probeer (

id serial,

een char(50),

twee char(50));
Read more...

Posted in  | Tags

MySQL Activity Report, een database tuning hulpprogramma

Posted by Paul Verreth Thu, 18 Jan 2007 14:20:00 GMT

De MySQL Activity report package is een tool die MySQL database administrators toe laat om verschillende database paramaters en variabelen te loggen. Deze rapporten kunnen bijvoorbeeld gebruikt worden voor server monitoring en performance tuning.

Read more...

Posted in  | Tags