XAMPP中mysql的密碼設定

來源:互聯網
上載者:User

標籤:http   os   檔案   div   sp   on   c   amp   ad   

XAMPP中mysql密碼設定共四個步驟(假設要設定密碼為123456)

1、輸入http://localhost/phpmyadmin進入phpmyadmin頁面     點擊mysql->user 在host為Host,User為root這一欄中輸入1234562、回到首頁,點擊上方使用者使用者一欄,在使用者為root,主機為localhost這一欄點擊編輯許可權,在下方修改密碼處輸入密碼和再次輸入密碼3、開啟xampp安裝目錄下的phpmyadmin檔案夾下config.inc.php改$cfg[‘Servers‘][$i][‘password‘] = ‘‘為$cfg[‘Servers‘][$i][‘password‘] = ‘123456‘;$cfg[‘Servers‘][$i][‘AllowNoPassword‘] = true為$cfg[‘Servers‘][$i][‘AllowNoPassword‘] = false;4、進入xampp安裝目錄下的mysql檔案夾下bin目錄中的my.ini,   把#password=password改為 password=123456以上四個步驟完成,密碼就設定好了,命令列定位到mysql的bin目錄下,可輸入mysql -uroot -p123456斷行符號即可進行相應的操作 無密碼從命令列中進入輸入命令 mysql -hlocalhost -uroot -p  斷行符號兩下即可

XAMPP中mysql的密碼設定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.