mysqlcheck asterisk kvstore --auto-repair -p
mysqlcheck -u root -p --auto-repair -c -o --all-databaseshttp://www.thegeekstuff.com/2011/12/mysqlcheck/
mysqlcheck -u root -p --auto-repair -c -o --all-databaseshttp://www.thegeekstuff.com/2011/12/mysqlcheck/
# mysql -u root -ptmppassword mysql> create database sugarcrm; Query OK, 1 row affected (0.02 sec) # mysql -u root -ptmppassword sugarcrm < /tmp/sugarcrm.sql # mysql -u root -p[root_password] [database_name] < dumpfilename.sql