How to set up remote connection database in phpMyAdmin
Feb 05, 2020 pm 03:43 PMphpMyAdmin 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 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;
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'
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!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Where does the wordpress database exist?

What should I do if navicat cannot connect?

How to change the default password of Empire CMS

How to check if navicat forgets root password

Detailed tutorial on establishing a database connection using MySQLi in PHP

What is the wordpress article database?

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

How does Hibernate implement polymorphic mapping?
