Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
161 views
in Technique[技术] by (71.8m points)

MySQL Server 8.0 remote database

I am very frustrated that I am trying this from over 5 days. I need to create database on my PC that has to be visible for all other PCs in the same LAN.

I tried with XAMPP - Apache + MySQL - no result even after reading all articles from first 2 pages of Google and watching many youtube clips. Now I am trying with MySQL Server 8.0 on my PC. I tried again all of Google first pages stuff without result. How can I do that?

I know that this has been asked many times here but there is no complex solution at all.

Does anybody of you have tutorial that is tested nowadays and it is working?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

you should provide more details like the error message you get when connecting to the remote mysql server, anyway, to allow remote access, here is a checklist you need to go through:

  1. grant permission, mysql by default only allow access from localhost(127.0.0.1), to allow other ip access: // replace root for the username, '123456' for the password grant all privileges on . to 'root'@'%' identified by '123456';

    flush privileges;

  2. check your server firewall settings to allow your mysql through port 3306(default)

  3. others: for linux server I think you also need to comment out "bind address" in your mysql config file; some other issues for example your mysql client autodetect the wrong timezone, you may need to manually set it; check your inbound rule on your client pc; etc.

my suggestion for you, don't just google around blindly, think about it logically first, sometimes there is no direct answer


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...