linux 学习笔记
运维小白鼠
这个作者很懒,什么都没留下…
展开
-
linux下mysql-5.7 忘记root密码,重置root密码详细过程
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库。 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录和修改MySQL的信息。可以采用将MySQL对外的端口封闭,并且停止Apache以及所有的用户进程的方法实现服务器的准安全状态。最安全的状态是到服务器的Console上面操作,并且拔掉网线。2.修...原创 2018-07-18 09:40:21 · 6724 阅读 · 0 评论 -
mysql 给用户赋权和删除权限
mysql通过 GRANT 授予权限 , REVOKE 撤销权限授予用户权限:grant all privileges on 层级 to 用户名@主机 identified by '密码';授予wang用户全局级全部权限:grant all privileges on *.* to 'wang'@'%' identified by 'wang';授予wang用户针对xsgl数据库全...原创 2018-07-19 09:33:56 · 7375 阅读 · 1 评论 -
编译PHP报错:configure: error: xml2-config not found. Please check your libxml2 installation
checking libxml2 install dir... /usr/localchecking for xml2-config path...configure: error: xml2-config not found. Please check your libxml2 installation. 解决办法:首先检查安没安装libxml2包rpm -qa|grep ...原创 2018-07-20 09:05:54 · 2617 阅读 · 0 评论 -
编译PHP报错:configure: error: Please reinstall the BZip2 distribution
checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distribution解决办法:yum -y install bzip2-devel原创 2018-07-20 09:08:49 · 2832 阅读 · 0 评论