簡體   English   中英

無法登錄到MySQL服務器(XAMPP)

[英]Cannot log in to the MySQL server (XAMPP)

我在登錄phpMyAdmin時遇到問題,特別是當我以root用戶和正確的密碼登錄時,出現此錯誤:

Cannot log in to the MySQL server

當我使用不帶密碼的'pma'用戶登錄時,它可以工作,但顯然沒有我需要使用的權限。 我很確定這是1045錯誤。

這是我在config.inc.php中的設置:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'sutdenlol';
$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'] = '';

如果您需要更多信息,請告訴我,而不要投反對票。

編輯:PHP腳本可以使用具有正確密碼的root用戶訪問服務器。

嘗試改變

$cfg['Servers'][$i]['host'] = 'localhost';

$cfg['Servers'][$i]['host'] = '127.0.0.1';

並檢查您是否在計算機上安裝了MySql Server。 您可以在這里下載-https: //dev.mysql.com/downloads/

暫無
暫無

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

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