- 安装服务:mysqlinmysqld --install mysql --defaults-file=d:my.ini
- 删除服务:mysqlinmysqld remove
- 启动(暂停)服务:net start(stop) mysql
- 修改密码:
-
mysql>set password =password('你的密码');
mysql>flush privileges; -
mysql>use mysql;
mysql>update user set password=password('你的密码') where user='root';
mysql>flush privileges;
-
- 查看变量设置:show variables like '%character%'
- 表重命名:alter table tableName rename to newTablename
- 格式化数据:select * from tb limit 2 G;