码迷,mamicode.com
首页 > 数据库 > 详细

MYSQL常用命令 MyISAM to InnoDB, max connections , GRANT ALL PRIVILEGES , mysqldump 等等

时间:2015-12-10 13:06:35      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:

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‘@‘%‘ 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常用命令 MyISAM to InnoDB, max connections , GRANT ALL PRIVILEGES , mysqldump 等等

标签:

原文地址:http://www.cnblogs.com/zero530/p/5035560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!