Interaction between Navicate and the mysql service provided by phpstudy

Misunderstandings and solutions:
  1. First of all, I have been trying to connect and kept failing because I have entered a misunderstanding, that is, the port needs to be the port of the host, but it is actually the port of the service - 3306 (of course this is the default, if you need to check it, go to the configuration file Find it in Settings——>Configuration File——>mysql.ini——>[Click on the MySQL version you are using])

  1. You can see that the port is 3306:

3. Then connect in Navicate. Pay attention to the key points of the connection:

  • Connection name: whatever you want

  • Host: The domain name of the website being opened. Here is demo.io:88, so fill in demo.io here.

  • Port: 3306 mentioned above

  • Username: The username of the database you want to use

  • Password: the corresponding password

Issues exposed:

There is a question here, if the username and password of the two databases are the same, which database will be connected to? It needs to be thought and demonstrated, but I don’t have time at the moment. I am working on a spring boot project. Bloggers are welcome to communicate with me. . .

Now that Navicate is known to connect to the database, how does IDEA connect to the database? Please see this article:(33 messages) Mysql installation + IDEA configuration Mysql database_Hebuter-2018’s blog-CSDN blog

What is the use of this host port? Currently, it is only used when accessing your own local website, demo.io:88.

Finally, I would like to thank this blogger for his blog, which gave me inspiration:

(33 messages) Phpstudy & Navicat installation tutorial and MySQL database connectionHow to install mysql based on phpstudyXiao Bai Sec's blog -CSDN Blog

Guess you like

Origin blog.csdn.net/m0_63944500/article/details/129720824