我已经安装了xampp,我做了安全设置,但过了一段时间我忘记了root密码.我有谷歌它,如何重置,问题似乎他不能创建更低 - 更低测试文件,因为他试图访问我的Windows PC上的Unix路径:),哈哈.xamp配置.
resetroot.bat给了我这个输出:
101108 15:37:23 [Warning] Can't create test file \usr\local\mysql\data\MYCOMPUTERNAME.lower-test 101108 15:37:23 [Warning] Can't create test file \usr\local\mysql\data\MYCOMPUTERNAME.lower-test mysql\bin\mysqld.exe: Can't change dir to '\usr\local\\mysql\data\' (Errcode: 2) 101108 15:37:23 [ERROR] Aborting 101108 15:37:23 [Note] mysql\bin\mysqld.exe: Shutdown complete Passwoerter fuer Benutzer "root" und "pma" wurden nicht geloescht! Passwords for user "root" and "pma" were not deleted! Press any key to continue . . .
.bat文件包含以下重要部分:
PUSHD %~dp0 CD .. mysql\bin\mysqld.exe --no-defaults --bind-address=127.0.0.1 --bootstrap --console --skip-grant-tables --skip-innodb --standalone resetroot.err 2 …
嗨,我知道这是一个古老的问题,但我已经尝试了许多答案和指南,但都是徒劳的.之前我在本地机器上使用的是没有密码的phpmyadmin,我使用命令提示符在Windows上使用以下命令更改了密码
mysqladmin.exe -u root密码root
从那时起,我无法打开我的localhost/phpmyadmin,我得到以下错误
1045 - 用户'root'@'localhost'拒绝访问(使用密码:否)
我试过更改config.inc.php这个文件的当前状态如下
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
Run Code Online (Sandbox Code Playgroud)
我尝试从localhost/security.php更改密码,并将密码更改为123.我还尝试通过打开resetroot.bat批处理文件来重置 root密码.我认真地认为我搞砸了所以如果有人能在这里帮助我,我将感激不尽.我在Windows 7上使用Xampp
编辑此外,我想告诉你,我已经尝试给新密码
$cfg['Servers'][$i]['password'] = '';
Run Code Online (Sandbox Code Playgroud)
还有
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
Run Code Online (Sandbox Code Playgroud)
将用户更改为root
我最近在我的电脑上重新安装了WAMP,并从我备份的备份中复制了文件.我能够localhost毫无问题地访问,我现有的网站运行正常.
问题是我似乎无法通过登录http://localhost/phpmyadmin/index.php.我收到#1045无法登录MySQL服务器响应.
做了一些阅读后,我一直认为我可以编辑phpmyadmin的config.inc.php文件来调整设置.设置我的文件后(如下所述),我只是得到一个无法连接:无效设置.错误.
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
/* …Run Code Online (Sandbox Code Playgroud) 编辑:pbm 毕竟不是我在密码中使用了空格,所以我更改了描述
在尝试配置 xampp 时,我遇到了一个错误:fatal: unknown configuration directive 'function' on line 44 of '/opt/lampp/etc/proftpd.conf'
sudo lampp restart并且它起作用了sudo lampp security,我创建了一些密码sudo lampp restart,但这一次我收到了错误消息文件位于/opt/lampp/etc/proftpd.conf:
40 # daemon gets the password "xampp"
41 # commented out by xampp security
42 #UserPassword daemon 2TgxE8g184G9c
43 UserPassword daemon <?
44 function make_seed() {
45 list($usec, $sec) = explode(' ', microtime());
46 return (float) $sec + ((float) $usec * 100000);
47 }
48 srand(make_seed()); …Run Code Online (Sandbox Code Playgroud)