phpMyAdmin connection remote MySQL database method

Source: Internet
Author: User
Tags phpmyadmin


Modify the phpmyadminconfig.inc.php files in the phpMyAdmin site for this machine


Find this line and change the ' localhost ' after [' host '] to remote database IP

The code is as follows Copy Code

$cfg [' Servers '] [$i] [' host '] = ' 192.168.1.10 ';


Note: 192.168.1.10 is the IP of the remote database


After the change---Start menu----run----cmd (return)----net stop MySQL (enter)--------net start MySQL (enter)

This proves that your phpmyadmin can connect to the remote, but how MySQL does not support remote is useless, here is a description of MySQL open remote connection


First link the MySQL of this computer (with SSH login terminal, enter the following command):

Mysql-uroot-p Enter the password login, enter the following statement, execution.

The code is as follows Copy Code

Grant all privileges in *.* to ' user ' @ '% ' identified by ' password ' with GRANT option;

Where user is the username, MySQL defaults to root, password is the password set itself. % represents any host. This allows remote access to any host computer


FIX: At this time you access the local phpMyAdmin site when the user name password entered is a remote database, you can directly connect to the

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.