https://www.youtube.com/watch?v=iA_UYg5MLZk
stackoverflow解決辦法在這裏:http://stackoverflow.com/questions/19482371/fix-access-denied-for-user-rootlocalhost-for-phpmyadmin
連接在這裏很簡單的!
百度搜索的話直接給出修改多少行多少行。。。。
我在這裏簡單的總結一下:
- 找到安裝目錄:G:\wamp\apps\phpmyadmin4.1.14
- 新建一個文件夾:config
- 打開http://localhost/phpmyadmin/setup/
- 選擇新建服務器:
5. 加密方式:默認爲空,保存。
現在在剛剛創建的目錄下面config 看見產生了一個新的php文件
在同級目錄下找到相同的文件重新命名。
然後把剛剛產生的文件複製出來
在原來的文件中找到$cfg['Servers'][$i]['AllowNoPassword'] = true; 複製,粘貼在新文件中
最後的配置文件爲:
<?php /* * Generated configuration file * Generated by: phpMyAdmin 4.1.14 setup script * Date: Sat, 01 Aug 2015 19:51:42 +0200 */ /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = ''; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* End of servers configuration */ $cfg['blowfish_secret'] = '55bd072aa73ba9.57946818'; $cfg['DefaultLang'] = 'en'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; ?>
效果: