Home Database phpMyAdmin How to set up remote connection database in phpMyAdmin

How to set up remote connection database in phpMyAdmin

Feb 05, 2020 pm 03:43 PM
phpmyadmin database Remotely

phpMyAdmin can locally manage your databases on Tencent Cloud and Alibaba Cloud. Do you know how to operate it? Come and learn.

How to set up remote connection database in phpMyAdmin

How to set up a remote connection database in phpMyAdmin

First, create a remote user on the server (the root account only allows local connections, Considering security, generally set up a remote login account)

Operations on the server

Use the root account to log in to mysql

#mysql -u  root  -p root的密码
mysql> GRANT ALL ON *.* TO admin@'%' IDENTIFIED BY 'admin' WITH GRANT OPTION;
Copy after login

This sentence Meaning, any computer with an IP address is allowed to access this MySQL Server using the admin account and password (admin).

Local operation

Configure the configuration file phpMyAdmin/libraries/config.default.php# in your local web service phpmyadmin

##About line 125, change host, user, and password to server-related information

$cfg['Servers'][$i]['host'] = ‘远程数据库服务器IP地址’
$cfg['Servers'][$i]['user'] = 'admin'
$cfg['Servers'][$i]['password'] = 'admin'
Copy after login
Open the address of phpMyAdmin locally with a browser and log in to the remote account.

For more phpmyadmin related technical articles, please visit the

phpmyadmin usage tutorial column!

The above is the detailed content of How to set up remote connection database in phpMyAdmin. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where does the wordpress database exist? Where does the wordpress database exist? Apr 15, 2024 pm 10:39 PM

Where does the wordpress database exist?

What should I do if navicat cannot connect? What should I do if navicat cannot connect? Apr 23, 2024 am 10:00 AM

What should I do if navicat cannot connect?

How to change the default password of Empire CMS How to change the default password of Empire CMS Apr 16, 2024 pm 03:21 PM

How to change the default password of Empire CMS

How to check if navicat forgets root password How to check if navicat forgets root password Apr 24, 2024 am 12:06 AM

How to check if navicat forgets root password

Detailed tutorial on establishing a database connection using MySQLi in PHP Detailed tutorial on establishing a database connection using MySQLi in PHP Jun 04, 2024 pm 01:42 PM

Detailed tutorial on establishing a database connection using MySQLi in PHP

What is the wordpress article database? What is the wordpress article database? Apr 16, 2024 am 11:12 AM

What is the wordpress article database?

iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos Jul 18, 2024 am 05:48 AM

iOS 18 adds a new 'Recovered' album function to retrieve lost or damaged photos

How does Hibernate implement polymorphic mapping? How does Hibernate implement polymorphic mapping? Apr 17, 2024 pm 12:09 PM

How does Hibernate implement polymorphic mapping?

See all articles