我在試用agiletoolkit。當我嘗試執行數據庫測試時出現錯誤。安裝Agiletoolkit我在哪裏設置mysql密碼進行數據庫測試?
PDO error: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
DSN: mysql:host=localhost;dbname=example;charset=utf8
,再有就是那並不是真的複製這麼好一個回溯(這是在這篇文章的末尾)我已經在我的Windows 7機器上安裝WAMP
背景
。我爲mysql設置了一個root密碼,並且我也在phpmyadmin3.5.1 \ config.inc.php中設置了這個密碼,所以Phpmyadmin可以工作,並且我可以在phpmyadmin中創建表等。
我已將Agiletoolkit複製到我的www
目錄中。它顯示爲WAMP創建的首頁上的超鏈接。都好。當我點擊獲得敏捷工具包時,我從您自己的Agile Toolkit副本中獲得「Hello World」消息 - >迄今爲止都很好。
在頁面的右上方有一些按鈕 - 歡迎,例子...數據庫測試.... 當我點擊「數據庫測試」,我得到上面顯示的錯誤信息。
我認爲我需要告訴agiletoolkit我的mysql root密碼。
但我該怎麼做,或者我會做其他事情。
在此先感謝
這是在充分
http://localhost/agiletoolkit/?page=dbtest
BaseException錯誤
數據庫連接失敗
其他信息:
PDO error: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)
DSN: mysql:host=localhost;dbname=example;charset=utf8
C:\wamp\www\agiletoolkit\atk4\lib\BaseException.php:38
堆棧跟蹤:
C:\wamp\www\agiletoolkit\atk4\lib/BaseException.php :38 BaseException BaseException->collectBasicData(Null, 1, 0)
C:\wamp\www\agiletoolkit\atk4\lib/AbstractObject.php :292 BaseException BaseException->__construct("Database Connection Failed")
C:\wamp\www\agiletoolkit\atk4\lib/DB.php :67 sample_project_db DB->exception("Database Connection Failed")
C:\wamp\www\agiletoolkit\atk4\lib/ApiCLI.php :329 sample_project_db DB->connect(Null)
C:\wamp\www\agiletoolkit\page/dbtest.php :7 sample_project Frontend->dbConnect()
C:\wamp\www\agiletoolkit\atk4\lib/AbstractObject.php :189 sample_project_dbtest page_dbtest->init()
C:\wamp\www\agiletoolkit\atk4\lib/ApiFrontend.php :92 sample_project Frontend->add("page_dbtest", "dbtest", "Content")
C:\wamp\www\agiletoolkit\atk4\lib/ApiWeb.php :332 sample_project Frontend->layout_Content()
C:\wamp\www\agiletoolkit\atk4\lib/ApiFrontend.php :33 sample_project Frontend->addLayout("Content")
C:\wamp\www\agiletoolkit\atk4\lib/ApiWeb.php :208 sample_project Frontend->initLayout()
C:\wamp\www\agiletoolkit/index.php :15 sample_project Frontend->main()