optimize all tables
mysql -e"SELECT CONCAT('OPTIMIZE TABLES ', GROUP_CONCAT(TABLE_SCHEMA, '.', TABLE_NAME ORDER BY TABLE_SCHEMA, TABLE_NAME SEPARATOR ',')) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbname'...
View Articleskip networking in MySQL
When there is maintenance work to be carried on the database server, you can simply skip networking so that no connection from any other server from the network will be accepted.Simply enter the...
View ArticleInstall SQLite
$ # As of March 2009, the latest version was 3.6.11.$ wget www.sqlite.org$ tar xzf sqlite-amalgamation-3.6.11.tar.gz$ cd sqlite-3.6.11$ ./configure && make$ sudo make install
View Articleoptimize all tables
optimize all tables November 11, 2008 1:44:04 PM CAST November 11, 2008 1:44:04 PM CASTshantanuomysql -e"SELECT CONCAT('OPTIMIZE TABLES ', GROUP_CONCAT(TABLE_SCHEMA, '.', TABLE_NAME ORDER BY...
View Articleskip networking in MySQL
skip networking in MySQL May 3, 2009 4:34:24 PM CAT May 3, 2009 4:34:24 PM CATshantanuoWhen there is maintenance work to be carried on the database server, you can simply skip networking so that no...
View ArticleInstall SQLite
Install SQLite May 13, 2009 2:54:10 PM CAT May 13, 2009 2:54:10 PM CATshantanuo$ # As of March 2009, the latest version was 3.6.11.$ wget www.sqlite.org$ tar xzf sqlite-amalgamation-3.6.11.tar.gz$ cd...
View Articleschema conversion tool
schema conversion tool March 30, 2019 6:52:58 AM CAT March 30, 2019 6:52:58 AM CATshantanuoThis seems to be a useful tool to convert mysql or oracle schema to redshift. select queries can also be...
View ArticleInnodb troubleshooting
When you have your mysql up and running, just connect to any database (like mysql or test) and perform a following command:CREATE TABLE innodb_table_monitor(x int) engine=innodb;This will force innodb...
View ArticleSaving data to text file
sqlite> .mode listsqlite> .separator |sqlite> .output test_file_1.txtsqlite> select * from tbl1;sqlite> .exit$ cat test_file_1.txthello|10goodbye|20$
View ArticleTokudb and proxy on the same server
Here are the 2 steps to start tokudbcd /root/percona-5.5.30-tokudb-7.0.1-fedora-x86_64/./bin/mysqld_safe &start proxy with failed query logsh...
View ArticleInstall percona extra backup tool innobackupex
Steps to install innobackupex on Ubuntu:$ apt-key adv --keyserver keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2AAdd this to /etc/apt/sources.list, replacing VERSION precise with the name of your...
View Article
More Pages to Explore .....