mysqldump --user xxxx --password=xxxx --databases xxxx --no-data > /tmp/xxxx_20101027.sql
In my blog, i would discuss the problem i face in daily routine. Following are some of them: mysql error, mysql replication, mysql database corrupted repair, innodb tablespace corruption, mysql storage engines, mysql optimization and tuning, reinstall mysql linux server, linux command for dummies, linux administration tips, mysql administration tips, Linux server benchmarking
Wednesday, October 27, 2010
Friday, October 22, 2010
Few site for Reference for MySQL DBA
Thursday, October 21, 2010
MYSQL - To Delete records from tableA that matching records from tableB
Wednesday, October 13, 2010
Friday, October 8, 2010
UPDATE on INNODB status - INNODB_TABLE_LOCKS=1
Default value of INNODB_TABLE_LOCKS=ON, which means that Lock tables causes innodb to lock a table internally is autocommit=0;
MySQL InnoDB deadlock issue - lock mode AUTO-INC
AUTO-INC works as table level lock, which means other threads can't perform an insert in this table.
Hence, it means the insert statement would cause the threads to keep the lock to the end of the current insert SQL statements.
Suggested fix: you would have your own mechanism to generate the unique key to replace the "auto-increment" ID/fields. So that your insert statement may execute concurrently
Thursday, October 7, 2010
Shell Scripts to run MySQL Query
DB_NAME=SomeDB USER_NAME=someuser IP_ADDR=localhost PASSWORD=somepassword somevar=`echo "select * from <table_name> where <condition>" | mysql -h $IP_ADDR -u$USER_NAME -p$PASSWD $DB_NAME ` echo $somevar
Subscribe to:
Posts (Atom)