随笔分类 - mysql
摘要:主库ip:192.168.1.27 从库ip:192.168.1.41 配置主库 修改my.cnf文件 [root@bogon ~]# vi /etc/my.cnf 在[mysqld]加入下面的内容 # 服务的唯一编号 server-id = 1 # 开启mysql binlog功能 log-bin
阅读全文
posted @ 2020-06-28 16:53
懶得取名
摘要:编辑mysql配置文件 [root@bogon ~]# vi /etc/my.cnf 在 [mysqld] 配置节下新增 skip-grant-tables 保存并重启mysql //重启 [root@bogon ~]# systemctl restart mysqld 登录mysql [root@
阅读全文
posted @ 2020-06-28 14:16
懶得取名
摘要:php错误日志路径: 报错: PHP Warning: mysqli_real_connect(): (HY000/2002): Permission denied in 解决办法: 关闭SElinux (默认情况下SElinux是启用状态) 查看SElinux状态: sestatus 临时关闭:
阅读全文
posted @ 2020-06-12 15:32
懶得取名

浙公网安备 33010602011771号