1
Error: Unable to execute "/usr/bin/vmware-uninstall-tools.pl.
安装vmware tools错误解决办法很多朋友都在用vmware装Linux,在安装vmware tools的时候,由于操作不当,在安装vmware tools中途中断,在第二次安装的时候,系统提示vmware tools安装已存在,提示error:unable to execute /usr/bin/vmware-uninstall-tools.pl这是因为vmware-uninstall-tools.pl这个卸载文件没有被copy到/usr/bin中,导致卸载的时候提示错误。我们就把vmware-uninstall-tools.pl复制到/usr/bin中就可以安装了,操作如下
1 解压虚拟机安装包
2 进入解压后的文件bin目录
cd vmware-tools-distrib/bin(打开)3 将vmware-uninstall-tools.pl到/usr/bin中
cp vmware-uninstall-tools.pl /usr/bin
然后回到解压文件安装vmware tools 4 #./vmware-install.pl 然后根据提示输入yes 或 no ,按Enter键,直到出现enjoy时候,表示安装完成。重启系统reboot一下就可以了
2
安装mysql-server出错
感谢http://blog.csdn.net/gongchenupc/article/details/68066990
原因是:
CentOS7带有MariaDB而不是mysql,MariaDB和MySQL一样也是开元的数据库,您可以使用yum -y install mariadb-server mariadb命令安装
解决方案:
如果必须要安装MySQL,首先必须添加mysql社区repo通过输入命令:sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm,最后使用像安装MySQL的常规方法一样安装mysql: yum install mysql mysql-server mysql-libs mysql-server
3
service mysqld start后报错Failed to start mysqld.service: Unit not found.
感谢:http://www.centoscn.com/mysql/2014/0919/3778.html
解决:
CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server
4
登录MySQL时,报错ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)
感谢:http://blog.csdn.net/ktz666/article/details/39835853
解决
1、停用mysql服务:# /etc/rc.d/init.d/mysqld stop 。我是用service mysqld stop
2、输入命令:# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
3、登入数据库:# mysql -u root mysql
4、mysql> use mysql; 结果如下:
Database changed
5、mysql> UPDATE user SET Password=PASSWORD('newpassword')where USER='newuser';
结果如下:
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3 Changed: 3 Warnings: 0
mysql> FLUSH PRIVILEGES;
结果如下:
Query OK, 0 rows affected (0.00 sec)
mysql> quit
service mysqld restart
mysql -u newuser –p
Enter password: newpassword
mysql><登录成功>