Post

Visualizzazione dei post con l'etichetta MySQL

10 interessanti domande su MySQL

10 questions on MySQL speed-up and optimizations http://www.jpipes.com/index.php?/archives/177-Common-Questions-and-Answers-from-Performance-Tuning-Webinars.html Which will be faster out of these two queries - one with OR or one with IN? Where does MyISAM cache table records? Which will be faster out of queries with explicit INNER JOIN and implicit one? Is InnoDB faster/better than MyISAM? Is CHAR faster than VARCHAR? Is VARCHAR(80) faster than VARCHAR(255)? Are there performance issues when joining tables from different storage engines? If I change a derived table to a view, will performance increase? If I see Using temporary; Using filesort" in the Extra column of EXPLAIN output, does that mean a temporary table is created on disk? Is it possible to do a FULL OUTER JOIN in MySQL?

OpenOffice Base - MySql - Native Query

Query builder has an option for you to run direct SQL command directly. This mode is equivalent to MS Access - Pass-thru Query mode. This will allow you to use advanced features of NATIVE SQL dialect. Unfortunately if you choose this option, you can't really use the query designer very easily - although you can start with Query designer and then do the following: View->Switch Design View On/Off Edit->Run SQL command directly http://www.postgresonline.com/journal/index.php?/archives/8-Using-OpenOffice-Base-2.3.1-with-PostgreSQL.html

MySQL Performance Tuning Primer Script

http://www.day32.com/MySQL/

MySQLTuner

Quick Start wget mysqltuner.pl chmod 0700 mysqltuner.pl ./mysqltuner.pl http://wiki.mysqltuner.com/MySQLTuner

Boolean in MySQL 5 con Hibernate/JPA

A quanto ho capito in MySQL 5 i Boolean vengono gestiti con il tipo BIT mentre in MySQL 4 venivano gestiti come TinyInt Spostando un database da MySQL 4 (creato automaticamente con Hibernate) su MySQL 5 (caricando un dump creato con phpMyAdmin) le colonne che nella 4 erano tinyint si sono create bit e con le librerie Hibernate Core 3.2.6 e Hibernate EntityManager 3.3.2 quelle colonne vengono sempre lette FALSE Soluzione 1: Modificato nella 5 in tinyint. Risultato: funziona Soluzione 2: Aggiornare librerie Hibernate. Risultato: non verificato Soluzione 3: Specificato in @Column il columnDefinition in "bit" che "tinyint" e "BOOLEAN" Risultato: non funziona Maggiori dettagli qui: http://opensource.atlassian.com/projects/hibernate/browse/HBX-729 http://opensource.atlassian.com/projects/hibernate/browse/HHH-468 E un esempio di  columnDefinition qui: http://appfuse.org/display/APF/Java+5+Enums+Persistence+with+Hibernate -- Mirco Attocchi

MySQL - Connection Timeout

Da diversi giorni soffriamo di un problema legato al timeout notturno (dopo le 8 ore di defautl) delle connessioni al database MySQL. Ho trovato questi due articoli ed ho applicato con successo i consigli specificati nel secondo: gone-away.html connector-j-usagenotes-j2ee.html

MySQL grant user access

GRANT ALL ON databasename.* TO 'user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; GRANT ALL ON databasename.* TO 'user'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES;