mysql 更新后 phpmyadmin 无法运行

mysql 更新后 phpmyadmin 无法运行

我跟着指南将我的 mysql 从 5.1 更新到 5.5。经过大量命令和头痛之后,我能够升级 mysql。我通过终端检查了版本。

但现在又出现了另一个问题。phpmyadmin 无法正常工作。它显示

Forbidden

You don't have permission to access /phpmyadmin/ on this server.

Apache/2.2.14 (Ubuntu) Server at localhost Port 80

我到处搜索,尝试了各种解决方案,比如包含Include /etc/phpmyadmin/apache.confapache2.conf文件中并重新启动 apache(它开始显示 404 错误)。但它仍然不起作用。

phpmyadmin is broken or not fully installed我记得当我尝试各种解决方案时终端显示。

另外现在当我打开终端(Ctrl + Alt + t)时,它会显示各种错误:

Command 'uname' is available in '/bin/uname'
The command could not be located because '/bin' is not included in the PATH environment variable.
uname: command not found
bash: [: !=: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
sed: command not found
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: too many arguments
bash: [: too many arguments
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
bash: [: =: unary operator expected
ubc-7@ubc-7-desktop:~$

我现在该怎么办?修复、重新安装、格式化?

相关内容