Home  >  Q&A  >  body text

Questions about database

1. The teacher said to create a new table student in myblog. Why is it the database myblog?

2. How does the student table connect with the zhibo/3 project? How does this project know which database or data table is for him to use?


益伦益伦2603 days ago1446

reply all(2)I'll reply

  • 清雨

    清雨2017-09-26 09:26:33

    Through the 微信截图_20170926092412.pngconfiguration table, you can also change a database name, 1.pngbut if you change the name, you need to modify it in the configuration file.

    Why the program recognizes this database as you mentioned is because in the configuration file, it is specified to use this database, so it can only search the tables under this database

    reply
    1
  • 益伦

    So that's it, I finally figured it out

    益伦 · 2017-09-26 11:01:06
  • 2017-09-25 23:48:06

    Because your myblog database requires the student table, it is only valid under this table; find the connection between the two tables. For example, if the data in different fields under the two tables are the same, you can establish a connection between the two fields. .

    reply
    0
  • 益伦

    I understand. What I am asking is how this project is related to this database. There are so many databases. Why did the teacher randomly find a myblog database to use in the administrator? How are the project and the database related?

    益伦 · 2017-09-26 08:21:50
  • Cancelreply