svn Can't open file...
错误提示: Can't open file 'XXXXXXXXdbtxn-current-lock': 拒绝访问. Error1: Can't open 'db/txn-current-lock': Permission denied 解决方法:给svn目录添加读写权限. LINUX :chmod –R o+rw /home/svn windows :属性中操作一下,添加对应的用户,然后设置上权限.
phpmyadmin 提示 PHP 5.2+ is required 的解决办法
今天想安装个phpmyadmin于是去官网看了一下,看到有phpMyAdmin 3.3.3 于是就下了,安装,访问. 出错了. 提示: PHP 5.2+ is required 应该是说要求php 5.2以上吧. 系统装是提CentOS 5.5 因为只是玩玩,所以图省事,apache,php,mysql都直接选装了. 原来CentOS 5.5自带的php是5.1.6. 两个方法: 1.升级php,2使用低版本的phpmyadmin. 因为本人还是比较懒的,所以找了一下phpMyAdmin-2.11.10-all-languages.tar.gz 问题解决. 网上也有使用yum升级php的,不过,还要配制yum源,如果 是想升级php的,请看下文升级方法. 2.yum 升级php和mysql. wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm wget http://rpms.famillecollet.com/enterprise/5/remi/i386/remi-release-5-7.el5.remi.noarch.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm 然后编辑/etc/yum.repos.d/remi.repo vi /etc/yum.repos.d/remi.repo 在这个文件的最后增加一行: priority=1 保存退出. /etc/yum.repos.d/epel.repo和/etc/yum.repos.d/epel-testing.repo这两个文件也按照上面的方法进行编辑! 使用下面的命令进行升级,但是经过测试,如果单独升级php将提示失败,只有联通mysql一起升级才可以,所以我们必须执行以下命令才能升级php到5.2.9版本: yum –-enablerepo=remi update php* mysql*
Mysql管理员密码的初始化
1,杀掉正在运行中的mysql 2,依版本不同可能该脚本名称不同 /usr/local/bin/safe_mysqld --skip-grant-tables &(较老版本) /usr/local/bin/mysqld_safe --skip-grant-tables &(较新版本) 3,用空密码登录mysql 4,修改root用户密码 >use mysql >update user set password=password("new_pass") where user="root"; >flush privileges; >quit 杀掉mysql,重启,搞定!
使用git迁移git项目并保留提交记录
在平时开发中我们有自己的git仓库,组内提交都是在这个库.突然有一天,领导说要把这个库整合到另一个更大的工程中,那里面有前后端的代码;为了方便大家查找,我们需要将各个组的代码迁移到同一个大工程下. 问题: 1,提交要保留提交记录 2,changelog要保留 3,组内成员要保留 解决方案: git push --mirror ...... 操作: 假如我们原有的仓库为 git@codehub.devcloud.huaweicloud.com:project.git. 1.从原地址克隆一份裸版本库. $ git clone --bare git@codehub.devcloud.huaweicloud.com:project.git 2.在新目录创建git___空___项目. 这一步是为了让旧项目有镜像. 假如新仓库地址为 git@codehub.devcloud.huaweicloud.com:leaderProject.git. 3.镜像推送代码到新仓库. 进入旧git目录,推送即可. $ cd project $ git push --mirror git@codehub.devcloud.huaweicloud.com:leaderProject.git
重建mysql套接字 解决找不到mysql.sock文件错误
mysql5.0.37数据库使用源码安装,版本5.0.37-log,使用Localhost via UNIX socket,启动脚本 /usr/local/bin/mysqld_safe;判断一般人解决故障时没有切换到mysql用户,造成权限有问题,无法创建mysql授权表,所以也就无法创建 /tmp/mysql.sock和 hostname.pid文件.因此,总结解决方法如下: $su mysql $/usr/local/bin/mysql_install_db //重建授权表 $/usr/local/bin/mysqld_safe & $/usr/local/bin/mysql //测试 $mysq>bye; 文件已经解决,重新生成新的 /tmp/mysql.sock 和 hostname.pid $su root $chmod +t /tmp/mysql.sock //添加保护 全部结束!
yum lock的解决办法
错误提示: [root@localhost wangcheng]# yum install yumex Existing lock /var/run/yum.pid: another copy is running as pid 3807. Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... Another app is currently holding the yum lock; waiting for it to exit... 可能是系统自动升级正在运行,所以yum被锁定了. 可以通过执行 rm -rf...