Mysql cmd admin error
#5

Bad design. Your tables have duplicates.

Table "accounts" should have only the main data of player (id, name, ip, password etc.)

Table "houses" is enough for you to extract data only once and having the same data on another table is not good.

Column "Owner" should have been an integer (userid) and be a FOREIGN KEY to link the two tables. Using JOINs, you can retrieve name of owner and/or which house (if any) the player owns upon logging in.
Reply


Messages In This Thread
Mysql cmd admin error - by nbx2000 - 13.06.2018, 00:17
Re: Mysql cmd admin error - by JasonRiggs - 13.06.2018, 00:26
Re: Mysql cmd admin error - by nbx2000 - 13.06.2018, 02:08
Re: Mysql cmd admin error - by Slawi - 13.06.2018, 03:01
Re: Mysql cmd admin error - by Calisthenics - 13.06.2018, 07:08
Re: Mysql cmd admin error - by GTLS - 13.06.2018, 08:53

Forum Jump:


Users browsing this thread: 1 Guest(s)