We identified the importance of tracking and knowing the data needs of core features as well as custom features. The next question is how we can track and understand data to avoid potential conflicts. So, we need a method that logs/shows all queries run within a user request. There are numerous ways to track database queries, including premium enterprise tools and the command line. As you are beginning WordPress development, we are going to look at some of the simpler and useful methods that expand your knowledge.
This is one of the simpler and must-know methods as a developer. Both MySQL and MariaDB allow us to create a log file where we can track all the steps in connecting, initializing, and executing queries in a database. First, we need to add some configurations to the MySQL/MariaDB ini
file. Since we are using WAMP for the development tasks of this book, you can click on the WAMP icon, go to the MySQL section,...