问题:安装mysql服务过程出现Another app is currently holding the yum lock; waiting for it to exit...
先ctrl c 中断,然后 rm -f /var/run/yum.pid,然后再安装服务
问题:another app is currently holding the yum lock;waiting for it to exit
解决:rm -f /var/run/yum.pid
mysql
问题:grep 'temporary password' /var/log/mysqld.log 没有弹出密码
是上次清理没有清理干净,所以需要 执行 rm -rf /var/lib/mysql 再 grep 'temporary password' /var/log/mysqld.log 就可以了。
问题:mysql5.7如何修改密码
解决: SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');
(root是用户名,localhost是数据库)
进入sql:mysql -u root -p
在centos系统报错:pymysql.err.OperationalError) (1045, u"Access denied for user 'honeypot'@'lo
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY ‘我的密码’;
怎么找mysql的路径
命令: whereis mysql
上github
报错:centos7fatal: unable to access 'https://github.com/p1r06u3/opencanary.git/': TCP connection
1.先启用EPEL存储库
RHEL/CentOS 7 64位执行以下命令:
执行命令:wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
执行命令:rpm -ivh epel-release-latest-7.noarch.rpm
2.安装git命令 yum install -y git 即可安装
centos 7 git clone 报错:fatal: unable to access ‘https://github.com/ ?
解答:yum update -y nss curl libcurl
python setup.py sdist说Couldn't find index page for 'setuptools_git' (maybe misspelled?)
No local packages or download links found for setuptools-git
解答:$ wget http://peak.telecommunity.com/dist/ez_setup.py
# 安装 $ python ez_setup.py
# 更新,以下两种任选
$ python ez_setup.py –U setuptools
$ pip install -U setuptools
有邮件了用这个看邮件
cat /var/spool/mail/root