Resolves an issue where MySQL cannot be connected after installing XAMPP in a Linux environment

Source: Internet
Author: User
Tags phpmyadmin

In the Linux system, the development of PHP is generally a lamp environment, for the development environment, there is no need to spend too much energy to configure the lamp environment alone, using the XAMPP one-click installation package is a good way. The process of installing XAMPP on a Linux system does not speak here, mainly on the question of how to access the installation after it is completed.

After installation is complete, the default is only native access, if accessed through a remote browser, is not accessible. In order to achieve external access and through some third-party database visualization tools (such as navicat) connectivity, the following tasks need to be done:

1. Enter into/opt/lampp/etc/extra/httpd-xampp.conf, use Vim:set nu to add Require all granted code after 18 lines, save and exit, restart service OPT/LAMPP/LAMPP Restart, this can be accessed through an external browser xampp configuration interface, in the configuration interface to enter the phpMyAdmin option, this time the login phpMyAdmin page will be displayed (also can be directly through HTTP//your ip/ phpMyAdmin to access phpMyAdmin), log in with the root user, and the default password is empty.

2. Modify the host field of the root user in the MySQL database, change from localhost to%, restart the service, and use Navicat and other tools to connect and operate the database remotely.

Resolves an issue where MySQL cannot be connected after installing XAMPP in a Linux environment

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.