MySQL common commands MyISAM to InnoDB, max connections, GRANT all privileges, mysqldump, etc.

Source: Internet
Author: User

MyISAM to InnoDB

ALTER TABLE boblog_blogs Engine=innodb;
ALTER TABLE Boblog_calendar Engine=innodb;

Max connections

Show global variables like "%max_con%";

Set global max_connections xxx;

GRANT All Privileges

GRANT all privileges on * * to ' root ' @ '% ' identified by ' sa123 ' with GRANT OPTION;
GRANT all privileges on * * to ' myuser ' @ ' percent ' identified by ' MyPassword ' with GRANT OPTION;

Flush privileges;

Mysqldump

mysqldump-uroot-pabc123 qida_prd_20151122_1753 >qida_prd_20151124_0013.sql

Mysql-uroot-p qida2_t001<f:\asp db backup\mysql\sql Script\1511qd_shop.sql

MySQL common commands MyISAM to InnoDB, max connections, GRANT all privileges, mysqldump, etc.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.