上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

2023年6月29日

reeuqire与include的区别

摘要: include 和 require 都能把另外一个文件包含到当前文件中,他们有什么区别? Include 和 include_once 又有什么区别? 二者区别只有一个,那就是对包含文件的需求程度,include 就是包含,如果被包含的文件不存在的话,那么则会提示一个错误,但是程序会继续执行下去。 阅读全文

posted @ 2023-06-29 20:34 建安永乐 阅读(5) 评论(0) 推荐(0) 编辑

2023年6月27日

Centos7 解决ab压力测试报错apr_socket_recv: Connection reset by peer (104)问题

摘要: # ab -n 10000 -c 10000 http://192.168.1.66/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, htt 阅读全文

posted @ 2023-06-27 14:23 建安永乐 阅读(88) 评论(0) 推荐(0) 编辑

2023年4月27日

centos7查看端口

摘要: netstat -anp | grep 3306 阅读全文

posted @ 2023-04-27 19:18 建安永乐 阅读(43) 评论(0) 推荐(0) 编辑

PHP8编译安装报错make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

摘要: make: *** [ext/fileinfo/libmagic/apprentice.lo] 错误 1 解决: 当配置PHP时出现 make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1 时 是因为服务器内存不足1G 只需要在配置命令中添加 阅读全文

posted @ 2023-04-27 18:05 建安永乐 阅读(229) 评论(0) 推荐(0) 编辑

Mysql 设置日志查看日志

摘要: 一、查看日志是否开启: 1、show variables where Variable_name = 'general_log'; 2、show variables like 'general_log'; 二、开启和关闭的sql: 1、set global general_log=on; 2、set 阅读全文

posted @ 2023-04-27 10:49 建安永乐 阅读(353) 评论(0) 推荐(0) 编辑

2023年4月24日

Centos7配置Mysql8主从复制同步数据

摘要: 1.首先需要在三台不同主机安装好mysql8, 参考:https://www.cnblogs.com/haoxuanchen2014/p/17351034.html 主库ip: 192.168.2.66 从库1ip: 192.168.2.67 从库2ip: 192.168.2.68 主库的数据表结构 阅读全文

posted @ 2023-04-24 22:41 建安永乐 阅读(156) 评论(0) 推荐(0) 编辑

centos7 安装Mysql8并配置可以远程访问

摘要: 1.卸载centos7自带的MariaDB # rpm -qa|grep mariadb # yum erase mariadb 2. 下载mysql压缩包 # wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.33-el7-x 阅读全文

posted @ 2023-04-24 21:39 建安永乐 阅读(211) 评论(0) 推荐(0) 编辑

Access denied; you need (at least one of) the SYSTEM_USER privilege(s) for this operation

摘要: 原因是由于root用户没有SYSTEM_USER权限,把权限加入后即可解决: grant system_user on *.* to 'root'; 阅读全文

posted @ 2023-04-24 17:48 建安永乐 阅读(365) 评论(0) 推荐(0) 编辑

2023年4月22日

Mysql解决Authentication plugin ‘caching_sha2_password‘ cannot be loaded

摘要: 1、登录Mysql mysql -u root -p 2、修改账户密码加密规则并更新用户密码 //修改加密规则ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; //更新一下用户的密码ALTER 阅读全文

posted @ 2023-04-22 22:20 建安永乐 阅读(29) 评论(0) 推荐(0) 编辑

mysql设置允许外部访问

摘要: 配置mysql允许外部进行登录访问; 登录进入mysql;mysql -uroot -p输入密码进入, user mysql; select host,user from user; 3. 更新user表中root用户域属性,’%'表示允许外部访问 update user set host='%' 阅读全文

posted @ 2023-04-22 22:15 建安永乐 阅读(144) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

导航