本屌丝常见的问题已经全部记录如下,如大家有其他问题欢迎随时跟我进行交流。
1.无法进行软件源安装 提示信息:Package has no installation candidate
具体信息如下:
# apt-get install Apache
Reading package lists… Done
Building dependency tree… Done
解决方法如下:
# apt-get update
# apt-get upgrade
# apt-get install Apache
2.安装MySQL时没有提示输入密码
(1)mysqladmin -u root password “新密码”
(2)
mysql -u root
mysql> SET PASSWORD FOR ‘root’@’localhost’ = PASSWORD(‘新密码‘);
mysql> SET PASSWORD FOR ‘root’@’host_name’ = PASSWORD(‘新密码‘);
(3)
mysql -u root
mysql> UPDATE mysql.user SET Password = PASSWORD(‘newpwd’)
-> WHERE User = ‘root’;
mysql> FLUSH PRIVILEGES;