我无法访问本地网络和 phpMyAdmin
I cannot access the local web and phpMyAdmin
我有一个本地网站,每天都可以从其他电脑上访问。我做过的有:
- 我为 MySQL
设置了 root 密码
- 然后我必须将它调整为数据库密码 (database.php) ---> 仍然可以访问我的本地网站。并且有效。
然后我通过 localhost / security 为 phpmyadmin 设置密码(我输入相同的密码)。但是当这次我无法访问 localhost / phpmyadmin 时出现了第一个问题,但抱歉我忘了打印红色框中显示的内容的屏幕描述。
我正在寻找解决方案,有人建议我也调整在 config.inc.php 中设置的密码。但是这个错误仍然存在,仍然无法访问 phpMyAdmin。
我试图找到一个解决方案,我找到了另一种进入方式,即使用 127.0.0.1/phpmyadmin 地址访问它。并将其制作成 phpmyadmin.
在这种情况下,我断定我没有设置密码 phpmyadmin。然后我尝试通过 phpMyAdmin 用户单击选项卡再次设置密码 --- 我 select root 并编辑 root 密码,然后单击生成(仍然使用相同的密码)。所以从这个峰....
经历了这一切...最终我无法访问我的本地网络,标题如下:
A Database Error Occurred Unable to connect to your database server using the Provided settings. Filename: C: \ xampp \ system \ Database \ DB_driver.php Line Number: 124
同时,尽管输入了正确的用户名和密码,我也无法访问 phpmyadmin ...愚蠢的是,在此之前我没有先备份数据库和 htdocs。
我想回到我的本地网络访问和 phpMyAdmin。
我断定是我弄错了,数据库被锁了,所以无法访问我的本地网站。
这是我的config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mypassword';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
或许您可以尝试重置您的 mysql root 密码。
首先您需要关闭 mysql 服务器
# server mysqld stop
使用安全模式
# mysqld_safe --skip-grant-tables &
登录mysql
# mysql -u root
使用sql命令更新您的密码
mysql> use mysql;
mysql> UPDATE user SET Password=PASSWORD("password") WHERE User='root';
mysql> flush privileges;
mysql> quit
重新启动您的 mysql 服务器
# service mysqld restart
尝试重新登录您的 phpMyadmin,希望对您有所帮助。
我有一个本地网站,每天都可以从其他电脑上访问。我做过的有:
- 我为 MySQL 设置了 root 密码
- 然后我必须将它调整为数据库密码 (database.php) ---> 仍然可以访问我的本地网站。并且有效。
然后我通过 localhost / security 为 phpmyadmin 设置密码(我输入相同的密码)。但是当这次我无法访问 localhost / phpmyadmin 时出现了第一个问题,但抱歉我忘了打印红色框中显示的内容的屏幕描述。
我正在寻找解决方案,有人建议我也调整在 config.inc.php 中设置的密码。但是这个错误仍然存在,仍然无法访问 phpMyAdmin。
我试图找到一个解决方案,我找到了另一种进入方式,即使用 127.0.0.1/phpmyadmin 地址访问它。并将其制作成 phpmyadmin.
在这种情况下,我断定我没有设置密码 phpmyadmin。然后我尝试通过 phpMyAdmin 用户单击选项卡再次设置密码 --- 我 select root 并编辑 root 密码,然后单击生成(仍然使用相同的密码)。所以从这个峰....
经历了这一切...最终我无法访问我的本地网络,标题如下:
A Database Error Occurred Unable to connect to your database server using the Provided settings. Filename: C: \ xampp \ system \ Database \ DB_driver.php Line Number: 124
同时,尽管输入了正确的用户名和密码,我也无法访问 phpmyadmin ...愚蠢的是,在此之前我没有先备份数据库和 htdocs。
我想回到我的本地网络访问和 phpMyAdmin。
我断定是我弄错了,数据库被锁了,所以无法访问我的本地网站。
这是我的config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'mypassword';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
或许您可以尝试重置您的 mysql root 密码。
首先您需要关闭 mysql 服务器
# server mysqld stop
使用安全模式
# mysqld_safe --skip-grant-tables &
登录mysql
# mysql -u root
使用sql命令更新您的密码
mysql> use mysql;
mysql> UPDATE user SET Password=PASSWORD("password") WHERE User='root';
mysql> flush privileges;
mysql> quit
重新启动您的 mysql 服务器
# service mysqld restart
尝试重新登录您的 phpMyadmin,希望对您有所帮助。