Centos yum 安装的PHP 卸载

由于服务器安装的PHP版本太高了,导致项目无法启动,需要卸载PHP重新安装。 习惯性的我直接使用yum remove php72w 结果只卸载了mod模块 已加载插件:f

Mysql 8 数据库密码无法使用以及授权语句的变化

使用mysql连接数据库的时候报错 PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2059] Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib64/mysql/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory in /root/index.php:2 Stack trace: #0 /root/index.php(2): PDO->__construct('mysql:host=125....', 'username', 'password') #1 {main} thrown in /root/index.php on line 2 这是Mysql 8的用户密

Mysql 8 查询语句报错

数据库升级为Mysql 8,在使用的时候原先的一个语句报错了 报错如下: SELECT list is not in GROUP BY clause and contains nonaggregated 这是Mysql至5.7之后的sql-mode的问题

Centos7 设置服务器内网IP

服务器托管机房之后,没有设置内网IP,需要进行设置 首先,使用IP命令查看网络设备的详细信息 ip a 结果: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope