MySQL Account save problem
#6

Quote:
Originally Posted by Storm94
Посмотреть сообщение
It probably isn't a Windows vs Linux thing, rather it is the configuration of the specific MySQL server.
Quote:
Originally Posted by Vince
Посмотреть сообщение
On your Windows machine, can you execute:
PHP код:
SHOW CREATE TABLE players
If the output of that query does show default values then your table setup is different.

Also that SQL script is horribly unoptimized. A single table shouldn't contain more than 30 fields or so, much less 300. That whole "accessory" section especially can and should be moved to a different table that has 13 columns rather than 84. Each new accessory constitutes a new row, not a new set of columns. Same thing with guns, licenses, times, inventory item, bans and whatever.
Quote:
Originally Posted by Storm94
Посмотреть сообщение
It probably isn't a Windows vs Linux thing, rather it is the configuration of the specific MySQL server.
Alright thanks men, but can you show me how can I properly set a default value or do it for me please? bacause and I tried adding NOT NULL DEFAULT ‘0’ but it gives me error.

Also, shall I set it for every field or what?
Reply


Messages In This Thread
MySQL Account save problem - by Scofield11 - 08.08.2017, 03:44
Re: MySQL Account save problem - by Storm94 - 08.08.2017, 03:57
Re: MySQL Account save problem - by Scofield11 - 08.08.2017, 04:19
Re: MySQL Account save problem - by Storm94 - 08.08.2017, 06:06
Re: MySQL Account save problem - by Vince - 08.08.2017, 08:20
Re: MySQL Account save problem - by Scofield11 - 08.08.2017, 10:23
Re: MySQL Account save problem - by Scofield11 - 08.08.2017, 13:33
Re: MySQL Account save problem - by Scofield11 - 09.08.2017, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)