Я думаю, что, как только у него есть основы (переменные, циклы, и т.д.) вниз, необходимо попытаться помочь ему найти что-то конкретным, которым он интересуется, и помогите ему изучить предметы первой необходимости заставить его произойти. Я знаю, что я намного более склонен и мотивирован, чтобы сделать что-то, если это представляет интерес для меня. Кроме того, удостоверьтесь, что позволили ему бороться, хотя некоторые более жесткие проблемы, ничто больше не удовлетворяет, чем момент, Вы понимаете его самостоятельно.
I would stick to keeping all the tables together, otherwise there's barely any point to using a single database. It also means that you could feasibly allow some sort of cross-site interaction down the track. Just make sure you put indexes on the differentiating field (customer_number
or whatever), and you should be ok.
If the tables are getting really large and slow, look at table partitioning.
It depends on what you intend to do with the data. If the clients don't share data, segmenting by customer might be better; also, you may get better performance.
On the other hand, having many tables with an identical structure can be a nightmare when you want to alter the structure.
I'd recommend using separate databases for each user. This makes your application easier to code for, and makes MySQL maintenance (migration of single account, account removal and so on.)
The only exception to this rule would be if you need to access data across accounts or share data.
Это называется мультитенантным приложением, и многие люди запускают его; см.
По вопросам некоторых других людей