在日常mysql运维中,经常要查询当前mysql下正在执行的sql语句及其他在跑的mysql相关线程,这就用到mysql processlist这个命令了。mysql> show processlist; //查询正在执行的sql语句mysql> show full processlist; //查 ...
分类:
数据库 时间:
2017-01-12 08:23:45
阅读次数:
278
1、【修改密码】 进入mysql中,使用命令:SET PASSWORD FOR 'root'@'localhost' = PASSWORD('新密码'); 2、【授权】 GRANT SELECT, INSERT, DELETE, UPDATE ON 数据库名称 To 用户@IP(允许访问数据库的IP ...
分类:
数据库 时间:
2016-10-20 21:36:58
阅读次数:
203
转自:http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/10/18/2216279.html 1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径 ...
分类:
数据库 时间:
2016-09-03 16:39:08
阅读次数:
200
linux mysql 操作命令 linux mysql 操作命令 1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径) 2.linux下重启mysql的命令:mysqladmin restart/ect ...
分类:
数据库 时间:
2016-06-17 17:15:48
阅读次数:
221
1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令:mysqladmin restart/ect/init.d/mysql restart (前面为mysql的安装路...
分类:
数据库 时间:
2015-12-24 23:38:08
阅读次数:
238
转载:http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/10/18/2216279.html1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)...
分类:
数据库 时间:
2015-05-27 11:36:48
阅读次数:
205
Mysql的所有命令都可以通过在线文档或者是通过helpcommand方式来获得帮助。以下说一些工作中经常用到的mysql操作命令。[mysql数据库][descibe]语句:用来显示表的结构,即组成表的各字段(列)的信息.需要指定"库名.表名"作为参数mysql>usemysql;
mysql>descibeuser;[create..
分类:
数据库 时间:
2015-03-18 06:42:46
阅读次数:
284
1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令:mysqladmin restart/ect/init.d/mysql restart (前面为mysql的安装路...
分类:
数据库 时间:
2015-03-11 12:12:43
阅读次数:
172
连接:mysql -h主机地址 -u用户名 -p用户密码 (注:u与root可以不用加空格,其它也一样)断开:exit (回车)创建授权:grant select on 数据库.* to 用户名@登录主机 identified by \"密码\"修改密码:mysqladmin -u用户名 -p旧密码...
分类:
数据库 时间:
2015-01-08 19:25:41
阅读次数:
222
1.linux下启动mysql的命令:mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令:mysqladmin restart/ect/init.d/mysql restart (前面为mysql的安装路...
分类:
数据库 时间:
2014-07-30 20:12:44
阅读次数:
289