#1045 无法在 wamp 中登录 MySQL 服务器
#1045 Cannot log in to the MySQL server in wamp
我在服务器和我的本地机器上都安装了 wamp
。在本地机器上,这工作正常。但是服务器中发生了一些问题。当我登录 phpmyadmin
#1045 无法登录 MySQL 服务器时 错误显示。我该如何解决这个问题?
我的config.inc.php文件包含以下代码
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'admin';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
请帮帮我..谢谢..
使用默认密码登录:
Username: root
Password: [null]
使用 [null] 我的意思是根本没有密码。
终于明白了
我按照 here 描述的说明进行了操作。按照 4 个步骤进行尝试。并且工作了。
现在 config.inc.php 看起来像这样
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
这与教程中描述的相同。因此,请按照 link 中给出的所有步骤并重新启动服务。会得到工作。谢谢..
删除您的密码并将其设置为空
$cfg['Servers'][$i]['password'] = 'null';
只需安装"MySQL workbench",如果已经过期,它将要求输入旧密码和新密码。
我的 WAMP 服务器遇到了同样的问题并设法修复了它。
WAMPServer已使用
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
很长一段时间以来,为了让 phpMyAdmin 抛出一个登录页面。这比在配置文件中存储 user
和 password
安全得多,当没有经验的用户决定打开他们的路由器以便向其他人展示他们的站点时,这将允许任何人登录到 phpMyAdmin。 =14=]
因此,如上所述更改您的 phpMyAdmins config.inc.php
,并在登录屏幕上输入用户名和密码。
注:
如果您没有更改 MySQL 以在 root 帐户上设置密码,则 在登录屏幕上将密码字段留空。
我在服务器和我的本地机器上都安装了 wamp
。在本地机器上,这工作正常。但是服务器中发生了一些问题。当我登录 phpmyadmin
#1045 无法登录 MySQL 服务器时 错误显示。我该如何解决这个问题?
我的config.inc.php文件包含以下代码
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'admin';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
请帮帮我..谢谢..
使用默认密码登录:
Username: root
Password: [null]
使用 [null] 我的意思是根本没有密码。
终于明白了
我按照 here 描述的说明进行了操作。按照 4 个步骤进行尝试。并且工作了。
现在 config.inc.php 看起来像这样
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
这与教程中描述的相同。因此,请按照 link 中给出的所有步骤并重新启动服务。会得到工作。谢谢..
删除您的密码并将其设置为空
$cfg['Servers'][$i]['password'] = 'null';
只需安装"MySQL workbench",如果已经过期,它将要求输入旧密码和新密码。
我的 WAMP 服务器遇到了同样的问题并设法修复了它。
WAMPServer已使用
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
很长一段时间以来,为了让 phpMyAdmin 抛出一个登录页面。这比在配置文件中存储 user
和 password
安全得多,当没有经验的用户决定打开他们的路由器以便向其他人展示他们的站点时,这将允许任何人登录到 phpMyAdmin。 =14=]
因此,如上所述更改您的 phpMyAdmins config.inc.php
,并在登录屏幕上输入用户名和密码。
注:
如果您没有更改 MySQL 以在 root 帐户上设置密码,则 在登录屏幕上将密码字段留空。