मैंने Xampp (विंडोज़ के लिए) स्थापित किया। मैं खुशी से इसका उपयोग अपनी सभी सुविधाओं के साथ कर रहा था।PHPMyAdmin रूट पासवर्ड बदलने के बाद कनेक्ट नहीं होता
फिर मैं MySQL पासवर्ड बदलना चाहता था। मैंने एक यादृच्छिक रूप से जेनरेट किया गया पासवर्ड सेट किया (rCZ4Xnz78zbLY2Vh)। तब PHPMyAdmin में प्रवेश करने बंद कर दिया यह निम्न त्रुटि संदेश देने के लिए शुरू कर दिया है, और यह तब से एक ही है:।
Error
MySQL said:
Cannot connect: invalid settings.
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.
तब मैं PHPMyAdmin के `config.inc.php" फ़ाइल संपादित, और वास्तव में इसकी सामग्री बनाया नीचे के रूप में:।
<?php
/* Servers configuration */
$i = 1;
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['ssl'] = FALSE;
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'rCZ4Xnz78zbLY2Vh';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'rCZ4Xnz78zbLY2Vh';
$cfg['Servers'][$i]['nopassword'] = TRUE;
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
/* Other settings */
$cfg['blowfish_secret'] = '';
$cfg['DefaultCharset'] = 'utf-8';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
लेकिन मैं एक ही पासवर्ड से कमांड लाइन के माध्यम से MySql सरवियर से कनेक्ट करने में सक्षम था
C:\Users\hkBattousai>mysql.exe --user=root --password=rCZ4Xnz78zbLY2Vh
mysql.exe: Unknown OS character set 'cp857'.
mysql.exe: Switching to the default character set 'latin1'.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 5.5.27 MySQL Community Server (GPL)
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
तब मैं कमांड लाइन क ¥ द्वारा पासवर्ड हटाया rface:
मैं भी config.inc.php
फ़ाइल से पासवर्ड हटा दिया। उस फ़ाइल में प्रासंगिक लाइनों अब कर रहे हैं:
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
वर्तमान में, यह अजीब है, लेकिन, मैं पासवर्ड मैं नष्ट कर दिया साथ जुड़ सकते हैं, लेकिन मैं खाली पासवर्ड के साथ कनेक्ट नहीं कर सकता:
C:\Users\hkBattousai>mysql.exe --user=root --password=rCZ4Xnz78zbLY2Vh // Connects
C:\Users\hkBattousai>mysql.exe --user=root --password= // Error given
मैं करना चाहते हैं इस उपयोगकर्ता को एक और यादृच्छिक पासवर्ड असाइन करें, और मैं PHPMyAdmin के माध्यम से अपने डेटाबेस तक पहुंचना चाहता हूं, जैसा कि मैंने पहले ताजा Xampp स्थापना के भीतर किया था। मुझे क्या करना चाहिए? मैं वास्तव में उलझन में हूं और मुझे आपकी मदद चाहिए।
यह config.inc.php
फ़ाइल सामग्री की तरह अनदेखा किया जाता है। मैंने इसे टेम्पलेट फ़ाइल config.sample.inc.php
से कॉपी किया और इसकी सामग्री बदल दी। यह अब निर्देशिका \Xampp\phpmyadmin\
में स्थित है।
संस्करण:
Xampp : 3.1.0
MySQL : 5.5.27
PHP : 5.4.7
Apache : 2.4
Windows : 7 Ultimate x64 SP1
आपके सरल सरल उत्तर के लिए धन्यवाद!मैं अपने जीवन के लिए यह नहीं समझ पाया कि किस कॉन्फ़िगरेशन फ़ाइल की मुझे आवश्यक जानकारी थी और मैं इसे Google कारण पर खोजने के लिए संघर्ष कर रहा था, मुझे बिल्कुल पता नहीं था कि मैं क्या देख रहा था! अब मैं अपना क्लासवर्क जारी रख सकता हूं हालांकि अब मैं अपने डेटाबेस से लॉक नहीं हूं। – SamG
आपका बहुत स्वागत है। जब मुझे यह समस्या थी तो मैं भी उतना ही निराश था। – Nick
मैं अब Xampp का उपयोग नहीं करता हूं। अब मैं वाग्रेंट का उपयोग करता हूं, यदि आप अपना लक्षित वातावरण लिनक्स हैं तो आप इसे देखना चाहेंगे। – Nick