Problems with phpmyadmin installation in RedHat9.0

Source: Internet
Author: User
Problems encountered when installing phpmyadmin in RedHat9.0-Linux Enterprise Application-Linux server application information. The following is a detailed description. After Apache, PHP, and MySQL are installed (the installation paths are in/usr/local), to install PHPMYADMIN, decompress it to apache normally, generate the/usr/local/apache2/htdocs/phpMyAdmin-2.11.2-all-languages directory. As required in the book, you want to change the config. default. php, you can just open config. default. php, the do not edit composed of several big letters is displayed in front of you, so, press config. default. copy config. default. php and change it to config. inc. php is still in. in the/libraries directory, the host, port, auth_type, blowfish_secret, user, and password items are modified. /Change "zh-gb2312" in the select_lang.lib.php file under the libraries directory to "zh-gb2312-utf-8", change "'gb2312 '=> 'gb2312'" in the $ mysql_charset_map = array section to "'gb2312 '= "> 'latin1 '". Open the browser, enter http: // localhost/phpMyAdmin-2.11.2-all-languages, but the result is an error: #1045-Access denied for user 'root' @ 'localhost' (Using pass: NO)

You have set both user and password, and use these two values (root and newpwd respectively. Use these two items to test MySQL --/usr/local/mysql/bin/mysqladmin-u root-p. I have been searching for a long time on the Internet, but most of the documents I have found are in windows. Although I have found some files in linux, I have not solved the problem. Finally, delete but the entire phpmyadmin-2.11.2-all-languages directory, re-under a 2.11.5 version, and then according to the above method once. The same is true.

Finally, in disappointment, under the phpmyadmin-2.11.2-all-languages directory (not. /libraries directory) the config. sample. inc. php, remember that this file was moved when it was correctly installed and used before, so in this directory, run cp config. sample. inc. php config. inc. copy a php file and set config. inc. in php, the host, port, auth_type, and blowfish_secret were changed as required. The user and password were not found, change "Controluser" and "Controlpass" to "user" and "password" respectively, with the values root and newpwd respectively. Restart mysql and apache and enter the console successfully.

Finally, in order to try whether or not to access. /config. inc. php (copy and change from config. default. php) unrelated, go to the libraries directory and rm-f config. inc. php and then open the http: // localhost/phpMyAdmin-2.11.5-all-languages, can also enter, so the final conclusion: play a night of phpmyadmin for linux #1045 error is due to the wrong config. inc. PHP file.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.