Since there is enough time, let's start with discrete mathematics, and then focus on learning data structures and algorithms, relational algebra. These people have all learned, and most of the mathematics used in programming can be mastered.
You can allocate your study time according to your efficiency. Generally, discrete mathematics takes at least half a year to one year, and it takes half a year to learn data structures and algorithms with relational algebra. At other times, these mathematical knowledge can be consolidated through programming practice.