mysql percona yum_CentOS6.6 yum安装percona mysql5.6

0.安装percona-release-0.1-3.noarch.rpm

10ca79864f59

yum -y install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm

1.安装Percona-Server-client-56 Percona-Server-server-56

10ca79864f59

yum -y install Percona-Server-client-56 Percona-Server-server-56

10ca79864f59

10ca79864f59

2.检查开机自启动

10ca79864f59

chkconfig | grep mysql

3.启动mysql服务

10ca79864f59

service mysql start

4.为root用户设置密码

10ca79864f59

10ca79864f59

set password for root@localhost=password('rootroot');

10ca79864f59

set password for root@127.0.0.1=password('rootroot');

再次登录

10ca79864f59

再次查看用户信息

10ca79864f59

select user,host,password from mysql.user;

5.删除匿名用户

10ca79864f59

delete from mysql.user where user='';

6.创建允许从任意ip连接到数据库服务器的用户simpleware,密码simpleware

10ca79864f59

insert into mysql.user(Host,User,Password) values('%','simpleware',password('simpleware'));

7.创建simpleware_test数据库

10ca79864f59

create database simpleware_test;

8.将simpleware_test数据库的所有权限授予用户simpleware

一直有如下 报错

10ca79864f59

解决:重启mysql服务

10ca79864f59

再次执行成功

10ca79864f59

grant all on chengshi.* to 'chengshi'@'%' identified by '5WQ5IcliZcMCrRde'

远程连接

10ca79864f59

参考资料:

https://lvwenhan.com/web-back/371.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值