Wednesday, March 3, 2010

Get total rows in table --mysql

  • Rows

    The number of rows. Some storage engines, such as MyISAM, store the exact count. For other storage engines, such as InnoDB, this value is an approximation, and may vary from the actual value by as much as 40 to 50%. In such cases, use SELECT COUNT(*) to obtain an accurate count.

    The Rows value is NULL for tables in the INFORMATION_SCHEMA database.

Transfer mysql DB from 10.1.1.100 to 10.1.1.111

example:
Login 10.1.1.100 (user:root, passwd:xxx)

mysqldump -u root --password=xxxxxx -B Ror232_PROD_HR Ror232_PROD_SYS | mysql --host=10.1.1.111 -u subird --password=xxxxxx

Followers