易截截图软件、单文件、免安装、纯绿色、仅160KB

Mysql知识点总结:Flush privileges

mysql> flush privileges;什么意思?­
mysql> update mysql.user set password=PASSWORD('新密码') where User='root';­
mysql> flush privileges;­
mysql> quit­
答:­
mysql 新设置用户或更改密码后需用flush privileges刷新MySQL的系统权限相关表,否则会出现拒绝访问,还有一种方法,就是重新启动mysql服务器,来使新设置生效。­
具体例子: ­
1.用户root用户进入mysql再打开mysql数据库(use mysql)后­
create user xh identified by 'xh';    //创建一用户xh并添加密码为xh­
exit;    //退出测试­
2.返回C目录下用新用户重新进入mysql­
mysql -uxh -pxh   //进入成功­
3.重新使用root用户进入mysql并打开mysql数据库­
update user set password=password ('monkey') where user='xh';   //更改xh用户密码为monkey­
exit;     //再次退出测试­
4.直接以用户XH身份进入,用新密码进入看是否成功­
mysql -uxh -pmonkey;  //报错,密码不正确­
5. 重新以ROOT 用户登陆并进入mysql数据库,重新修改用户密码­
update user set password=password ('monkey') where user='xh';   //更改xh用户密码为monkey­
flush privileges;   //刷新MySQL的系统权限相关表­
exit;­
6.再次退出,并以xh用户monkey密码进入,测试成功!­
­


相关文档:

MySQL Proxy安装和使用(一)

按照手册安装MySQL Proxy之前先要安装以下软件 libevent 1.x or higher (1.3b or later is preferred) lua 5.1.x or higher glib2 2.6.0 or higher pkg-config libtool 1.5 or higher MySQL 5.0.x or higher developer files rpm查看libevent $rpm -q libevent
libevent-1.1a-3.2. ......

SQL Server里建Mysql链接服务器的图解

在SQL Server里建Mysql和Oracle数据库链接还是比较容易的:我们先在服务器上安装Mysql和Oracle数据库相关的ODBC驱动程序,在[管理工具]->[数据源(ODBC)]       设置系统DSN,如下图:     
 
设置好了以后,我们可以用SQL Server自带的导出和导入工具来实 ......

简易脚本方便备份MySQL数据库

简易脚本
方便备份MySQL
数据库
@echo off
echo.
echo      MySQL数据库备份
echo *****************************
echo.
echo 今天是 %date%
echo 时间是 %time%
echo.
echo *****************************
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"
md "E:\%Ymd% ......

mysql 数据库卸载不完全,配置出错解决办法

The security settings could not be applied to the database because the connection has failed with the following error.
Error Nr. 2003
Can't connect to MySQL server on 'localhost' (10061)
If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for conn ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号