PDA

View Full Version : سوال: علت خطا در کار با phpMyAdmin



ms_raha
دوشنبه 22 آبان 1391, 12:15 عصر
سلام
من با wamp کار میکنم localhost رو که در مرورگر میزنم و phpmyadmin رو که انتخاب میکنم پیغام زیر را میدهد

MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

من از طریق mysql command line client یک کاربر با دستور grant ایجاد کردم گفتم شاید علت خطا به خاطر این باشد اونوقت wamp رو پاک کردم دوباره نصب کردم

یک برنامه نوشتم با php و به پایگاه داده با user root وصل شدم و جواب داد ولی از phpmyadmin به mysql نمیرود
ممنون میشم کمکم کنید

MMSHFE
دوشنبه 22 آبان 1391, 17:08 عصر
توی پوشه phpMyAdmin یک فایل هست به نام config.inc.php که باید توی اون، نام کاربری و رمز عبور اتصال به سرور رو اصلاح کنید.