XAMPP Access phpMyAdmin cannot access

Source: Internet
Author: User
Tags mysql command line phpmyadmin

My xampp version is Xampp-linux-x64-5.6.15-2-installer.run,

Browser input "My Ip/phpmyadmin" has the following problems:

Access forbidden!


New XAMPP Security Concept:

Access to the requested directory was only available from the local network.

This setting can is configured in the file "httpd-xampp.conf".

There are a lot of answers to the online search, and there are two answers that appear most:

1, find httpd-xampp.conf in this section of the Require local, this paragraph can be commented out

2, find this section of the httpd-xampp.conf <locationmatch "^/(? I: (?: xampp|security|licenses|phpmyadmin|webalizer| Server-status|server-info)) ", remove phpMyAdmin to

but!!!!!

According to the 1 method, invalid!

According to the 2 method, according to a ball, can not find in 2 of this paragraph

Continue the search. A solution was found.

Links to good people: http://blog.csdn.net/YellowStar5/article/details/53446676

Also: If you want to reset the root password to phpMyAdmin and MySQL settings, you can do so by following the link.

Finally, if you want to start the MySQL command line with Mysql-u Root-p, the results won't work. After searching online, I found that I did not set up a soft connection for MySQL. My settings are as follows: Ln-s/opt/lampp/bin/mysql/usr/bin

Why do this, online says:

Cause: This is because the system will find the command under/usr/bin by default, if this command is not in this directory, of course, will not find the command, we need to do is to map a link to the/usr/bin directory, equivalent to create a link file.
First you need to know the full path to the MySQL command or mysqladmin command

Finally visit phpMyAdmin, found no password on the entry. Clearly set the password ah. What's going on.

My configuration file vim/opt/lampp/phpmyadmin/config.inc.php

Two places modified:

1, will $cfg [' Servers '] [$i] [' auth_type '] = ' config '; modified to $cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';

2, $cfg [' Servers '] [$i] [' allownopassword '] = true; modified to $cfg[' Servers ' [$i] [' allownopassword '] = false;

Other people may be the XAMPP version of the different, then find the information it

XAMPP Access phpMyAdmin cannot access

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.