简体   繁体   中英

How to give acces to mysql database to another computer using same lan in ubuntu?

my local ip is 192.168.1.30 I tried bind address= 192.168.1.30 in my.cnf and /etc/mysql/mysql.conf.d/mysqld.cnf . i also tried bind address=0.0.0.0 But cannot access mysql from same lan. Can you show me the proper way to access Mysql from another computer? Can you also show the way to connect Mysql database to DBeaver from another computer? Thanks in Advance

First check the my.cnf in /etc/my.cnf or /etc/mysql/my.cnf If there is any bind-address, then comment it with # then in /etc/mysql/mysql.conf.d/mysqld.cnf, add bind-address= 0.0.0.0 After it restart the mysql . Thats it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM