使用 root 用户登录:使用 grant 语句:1、添加一个用户admin并授权通过本地机(localhost)访问,密码"something"mysql>grant all privileges on *.* to admin@localhost identified by 'something...
分类:
数据库 时间:
2015-05-19 12:22:16
阅读次数:
163
root用户不允许远程连接,需要执行一下授权grant all privileges on *.* to 'root'@'%' identified by '1234' with grant option;需要替换一下实际的密码
分类:
数据库 时间:
2015-05-16 14:43:41
阅读次数:
139
主库 ip:192.168.1.66
从库 ip:192.168.1.67
主机:
1)创建一个slave用户,并且赋予权限
grant replication slave,reload,super on *.* to 'slave'@'%' identified by '123456';
flush privileges;
2)更改配置文件(/etc/my.cnf 放在[my...
分类:
数据库 时间:
2015-05-15 12:09:43
阅读次数:
142
1.通过命令行使用root用户连接到mysql服务器,并进入mysql数据库mysql> use mysqlDatabase changed2.使用grant语句进行授权 all privileges:表示所有数据库权限 on *.*:表示在所有表,视图,函数等等,可以是具体的数据库下的某个...
分类:
数据库 时间:
2015-05-13 12:33:30
阅读次数:
161
//提升进程访问权限
bool enableDebugPriv()
{
HANDLE hToken;
LUID sedebugnameValue;
TOKEN_PRIVILEGES tkp; if (!OpenProcessToken(GetCurrentProcess(),
TOKEN_ADJUST_PRIVILEGES |...
分类:
编程语言 时间:
2015-05-12 13:41:55
阅读次数:
140
在shell下输入mysql -uroot -p是可以登录的,所以问题应该是mysql不允许root用户远程登录的问题,于是通过输入下面命令:GRANT ALL PRIVILEGES ON*.*TOroot@"%"IDENTIFIED BY'password'WITH GRANT OPTION;重启...
分类:
数据库 时间:
2015-05-12 01:21:54
阅读次数:
138
1.linux中允许数据库远程连接的命令是:
①:update mysql.user set Host='%' where Host='::1';
②:update mysql.user set password=password('1234');
③:flush privileges;
2.连接不到Linux的数据库的修改方法
①:chmod ...
分类:
数据库 时间:
2015-05-11 22:02:31
阅读次数:
149
1.新建用户 @>mysql -u root -p @>密码 //创建用户 mysql> insert into mysql.user(Host,User,Password) values(‘localhost’,‘jeecn’,password(‘jeecn’)); //刷新系统权限表 mysql>flush privileges; 这样就...
分类:
数据库 时间:
2015-05-08 13:14:54
阅读次数:
200
权限问题,授权 给 root 所有sql 权限mysql> grant all privileges on *.* to root@"%" identified by ".";Query OK, 0 rows affected (0.00 sec)mysql> flush privileges;Qu...
分类:
数据库 时间:
2015-05-07 14:17:27
阅读次数:
128
解决方法:CREATE USER 'root'@'localhost' IDENTIFIED BY 'password';
grant all privileges on *.* to 'root'@'localhost' identified by 'password' with grant option;可以讲password,改成你要设置的密码...
分类:
数据库 时间:
2015-05-05 19:41:46
阅读次数:
144