In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The editor will share with you how to visit other people's mysql. I hope you will gain a lot after reading this article. Let's discuss it together.
Access someone else's mysql method: first find the MySQL configuration file and search for "bind-address"; then add a [#] before [bind-address = 127.0.0.1]; finally, save and restart MySQL, and then access it remotely.
Access someone else's mysql method:
Locate the MySQL configuration file, search for "bind-address", and find this line:
Bind-address = 127.0.0.1 add a # before it, comment out this line, save, and restart MySQL. And then through remote access, telnet can find that the port is also open.
For example, we configure
1. Make sure that skip-networking is deleted or blocked, otherwise TCP/IP access 2. Add the line bind-address = 65.55.55.2 to replace 65.55.55.2 as your server address
After modification, the configuration is:
[mysqld] user = mysqlpid-file = / var/run/mysqld/mysqld.pidsocket = / var/run/mysqld/mysqld.sockport = 3306basedir = / usrdatadir = / var/lib/mysqltmpdir = / tmplanguage = / usr/share/mysql/Englishbind-address = 65.55.55.The skip-networking save and close the configuration file and restart the mysql server: # / etc/init.d/mysql restart
If the above method is not used, we can set it in general mysql command mode.
2. the method of changing the table.
It may be that your account is not allowed to log in remotely, only in localhost. At this time, as long as on the computer in localhost, after logging in to mysql, change the "host" entry in the "user" table in the "mysql" database from "localhost" to "%"
CODE:mysql-u root-p123mysql > use mysql;mysql > update user set host ='% 'where user =' root';mysql > select host, user from user; has finished reading this article, I believe you have some understanding of how to access other people's mysql, want to know more about it, welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.