2012-11-12 20 views
7

मैं दो त्रुटियों हो रही है जब मैं अपने phpmyadmin स्थानीय होस्ट पर जाने के लिएXAMPP स्थानीय होस्ट phpmyadmin पहुँच उपयोगकर्ता 'जड़' @ 'स्थानीय होस्ट' के लिए इनकार किया (पासवर्ड का उपयोग: हाँ)

Access denied for user 'root'@'localhost' (using password: YES) 

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. 

मैं नहीं जानता कि क्या कोशिश मैं कर रहा हूँ गलत ... यहाँ मेरी config कोड है ...

$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 

/* 
* Servers configuration 
*/ 
$i = 0; 

/* 
* First server 
*/ 
$i++; 
/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
/* Server parameters */ 
$cfg['Servers'][$i]['host'] = 'localhost'; 
$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = 'password'; 
$cfg['Servers'][$i]['connect_type'] = 'socket'; 
$cfg['Servers'][$i]['compress'] = false; 
$cfg['Servers'][$i]['AllowNoPassword'] = false; 
/* Select mysqli if your server has it */ 
$cfg['Servers'][$i]['extension'] = 'mysql'; 
/* User for advanced features */ 
//$cfg['Servers'][$i]['controluser'] = 'pmauser'; 
//$cfg['Servers'][$i]['controlpass'] = 'pmapass'; 
/* Advanced phpMyAdmin features */ 
//$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; 
//$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; 
//$cfg['Servers'][$i]['relation'] = 'pma_relation'; 
//$cfg['Servers'][$i]['table_info'] = 'pma_table_info'; 
//$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; 
//$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; 
//$cfg['Servers'][$i]['column_info'] = 'pma_column_info'; 
//$cfg['Servers'][$i]['history'] = 'pma_history'; 

/* 
* End of servers configuration 
*/ 

/* 
* Directories for saving/loading files from server 
*/ 
$cfg['UploadDir'] = ''; 
$cfg['SaveDir'] = ''; 

?> 

मैं कोड का एक बहुत बाहर टिप्पणी की है नोटिस, मैं इसे अन-टिप्पणी की जाना चाहिए? यह करने के लिए $cfg['Servers'][$i]['password'] = ''

  • बदलें: $cfg['Servers'][$i]['password'] = 'your_password';

  • +1

    क्या आप सुनिश्चित हैं कि आपको अपने डेटाबेस से कनेक्ट करने के लिए पासवर्ड चाहिए ?? अगर आपको पासवर्ड की आवश्यकता नहीं है तो यह $ cfg ['सर्वर'] [$ i] ['password'] = ''; –

    +0

    डेटाबेस से कनेक्ट करते समय यह त्रुटि आती है। तो डीबग करने के लिए कनेक्शन स्ट्रिंग विवरण को गूंजने का प्रयास करें (यह जानने के लिए कि कनेक्ट करने के लिए क्या मूल्य सही मान हैं या नहीं)। – deepi

    +0

    क्या आप डिफ़ॉल्ट xampp पृष्ठ पर गए हैं और सुरक्षा स्क्रीन के माध्यम से गए हैं? – shapeshifter

    उत्तर

    2

    कुछ भी न बदलें डाल के रूप में यह नहीं था, बस अपने XAMPP खोलने के लिए और से खोल cd c पहुँच mysql करने की कोशिश: // XAMPP/mysql/बिन इस के बाद लिखने mysql और enter क्लिक करें यह आपके डेटाबेस को खुल जाएगा

    +0

    क्या यह केवल कमांड लाइन से नहीं है? Phpmyadmin इस में फिट कहाँ है? –

    11

    phpmyadmin निर्देशिका

  • ढूँढें लाइन 21 के इन चरण

    1. ओपन config.inc.php फ़ाइल की कोशिश XAMPP

    2. पुनरारंभ करें

    here is full description with image

  • 0

    कोशिश ही प्रमाणीकरण क्रेडेंशियल्स का उपयोग कमांड लाइन से डेटाबेस के लिए लॉग इन करने के लिए। इस तरह आप सत्यापित करते हैं कि आप वास्तव में उपयोगकर्ता नाम और पासवर्ड जैसे सही प्रमाणीकरण प्रमाण-पत्रों का उपयोग कर रहे हैं। यदि आप कमांड लाइन पर असफल होते हैं तो समस्या phpmyadmin के साथ नहीं है बल्कि आपके डेटाबेस इंजन सेटअप के साथ है।

    +0

    मुझे नहीं पता कि यह कैसे करें .... मैं मैक – user979331

    +0

    पर टर्मिनल का उपयोग कर रहा हूं आपको MySQL क्लाइंट स्थापित करने की आवश्यकता है। यह एक आदमी पेज के साथ आता है। लेकिन सामान्य उपयोग है: 'mysql -u -p [वापसी] '। यदि आप किसी भिन्न सिस्टम पर डेटाबेस सर्वर तक पहुंचना चाहते हैं तो आपको यह सुनिश्चित करना होगा कि आपके पास सर्वर पोर्ट तक नेटवर्क पहुंच है, आमतौर पर mysql के लिए पोर्ट 3306। लेकिन जैसा कि कहा गया है: मैन पेज या MySQL दस्तावेज़ पढ़ें। यह सब वहाँ समझाया गया है। – arkascha

    1

    बदलें

    $cfg['Servers'][$i]['password'] = 'password'; 
    

    $cfg['Servers'][$i]['password'] = ''; 
    
    2

    के लिए इन चरणों से अपने config कोड के तहत निम्न पंक्ति phpmyadmin निर्देशिका में

    ओपन config.inc.php फ़ाइल मेरे लिए काम किया

    लाइन 21: $ सीएफजी ['सर्वर'] [$ i] ['password'] = ''

    इसे बदलें: $ cfg ['सर्वर'] [$ i] ['password'] = 'your_password';

    पुनः प्रारंभ XAMPP

    +0

    यह NullPoiиteя के उत्तर से अलग कैसे है? –

    1

    इतना समय मैं क्या पता है आया खर्च करने के बाद।

    बस phpmyadmin निर्देशिका

    /* Authentication type and info */ 
    $cfg['Servers'][$i]['auth_type'] = 'cookie'; 
    $cfg['Servers'][$i]['user'] = 'root'; 
    $cfg['Servers'][$i]['password'] = ''; 
    $cfg['Servers'][$i]['extension'] = 'mysqli'; 
    $cfg['Servers'][$i]['AllowNoPassword'] = true; 
    $cfg['Lang'] = ''; 
    

    आप @localhost होस्ट नाम के साथ एक उपयोगकर्ता के पास होना चाहिए में इस सेटिंग> config.inc.php फ़ाइल ओपन का उपयोग करें। अब phpmyadmin आपको पासवर्ड के लिए पूछेगा। यदि आप सही पासवर्ड प्रदान करते हैं, तो आप लॉगिन कर पाएंगे।

    +0

    पूरी मदद के लिए कृपया क्लिक करें http://stackoverflow.com/a/33325841/2875455 – Armaan

    संबंधित मुद्दे