簡體   English   中英

需要在 wamp 中的 config.ini.php(5.4.12) 中更改 mysql 的密碼

[英]Need to change password for mysql in config.ini.php(5.4.12) in wamp

我為 mysql 設置了 root 密碼,我發現我還應該在 config.ini.php 中更改該密碼才能使 wamp 正常工作,但是在我的 php 5.4.12 版本中,我在 config.ini 中找不到該行。 php 更改,在早期版本中存在,我只有。

$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* 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;

這是您必須更改的文件路徑:

C:\\wamp\\apps\\phpmyadmin\\config.inc.php

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM