And what about information about those references?

|
madm3n 2020-09-19 13:05:05
drfibonacci 2020-09-19 13:04:35
Oh good

no 🙁

madm3n 2020-09-19 13:05:15
still happening
drfibonacci 2020-09-19 13:05:23
https://dev.mysql.com/doc/refman/5.7/en/rebuilding-tables.html

Maybe this will help

madm3n 2020-09-19 13:06:51
mysql_en-5706.jpg

madm3n 2020-09-19 13:07:33
this is the process of mysql
drfibonacci 2020-09-19 13:11:22
madm3n 2020-09-19 13:03:55
maybe I can do this but will that make any differences?

Using shell is better in general

drfibonacci 2020-09-19 13:11:52
Maybe copy the table to another one, and then try your inserts
drfibonacci 2020-09-19 13:12:19
drfibonacci 2020-09-19 13:11:52
Maybe copy the table to another one, and then try your inserts

Then remove columns one by one and try performing them again

drfibonacci 2020-09-19 13:13:08
I think it happened because of sqli – someone didn’t use data in the format they were supposed to
madm3n 2020-09-19 13:14:03
drfibonacci 2020-09-19 13:11:52
Maybe copy the table to another one, and then try your inserts

I had a copy of the working database, so I uploaded just structure and after that pasted data in to it bu still the same 🙁

madm3n 2020-09-19 13:15:25
drfibonacci 2020-09-19 13:13:08
I think it happened because of sqli – someone didn’t use data in the format they were supposed to

this happened when I added a new column, I removed new column but it just didn’t fixed

drfibonacci 2020-09-19 13:16:18
madm3n 2020-09-19 13:15:25
this happened when I added a new column, I removed new column but it just didn’t fixed

Hence we have a clearer picture now

drfibonacci 2020-09-19 13:16:34
Do you have a backup before this particular alteration?
madm3n 2020-09-19 13:16:35
for 2 days tried almost every solution and I’m about to get crazy
madm3n 2020-09-19 13:16:51
dont know what to do
drfibonacci 2020-09-19 13:17:01
drfibonacci 2020-09-19 13:16:34
Do you have a backup before this particular alteration?

Do you have it?

madm3n 2020-09-19 13:17:10
yess
drfibonacci 2020-09-19 13:17:23
And you have restored this backup?
madm3n 2020-09-19 13:18:54
I just uploaded and transferred data into it
madm3n 2020-09-19 13:19:05
with old structure
madm3n 2020-09-19 13:47:24
mysql_en-5724.jpg

madm3n 2020-09-19 13:47:48
this is the last results
MasterZiv 2020-09-19 15:07:45
madm3n 2020-09-19 13:00:25
yess

Then dump the table as soon as possible.

MasterZiv 2020-09-19 15:09:03
drfibonacci 2020-09-19 13:12:19
Then remove columns one by one and try performing them again

Bad piece of advice…

madm3n 2020-09-19 15:16:00
MasterZiv 2020-09-19 15:07:45
Then dump the table as soon as possible.

what do you mean this exacty

MasterZiv 2020-09-19 15:17:52
madm3n 2020-09-19 15:16:00
what do you mean this exacty

Dump the data by mysqldump utility , this table at least or whole DB, if possible, for you to have latest data.

madm3n 2020-09-19 15:26:16
MasterZiv 2020-09-19 15:17:52
Dump the data by mysqldump utility , this table at least or whole DB, if possible, for you to have latest data.

How to do that?

MasterZiv 2020-09-19 15:28:52
madm3n 2020-09-19 15:26:16
How to do that?

Man mysqldump

madm3n 2020-09-19 16:21:58
MasterZiv 2020-09-19 15:28:52
Man mysqldump

now the table working but too slow

madm3n 2020-09-19 16:22:14
maybe 3 or 4 minutes
2020-09-20 15:05:16
Mysql workbench closing while opening existing stored procedure. Ican create n delete stored procedure. How do i resolve this
piterden 2020-09-20 15:12:49
2020-09-20 15:05:16
Mysql workbench closing while opening existing stored procedure. Ican create n delete stored procedure. How do i resolve this

Do you have default DB selected?

Master Yoda 2020-09-21 09:56:05
2020-09-20 15:05:16
Mysql workbench closing while opening existing stored procedure. Ican create n delete stored procedure. How do i resolve this

You mean while executing SP?

drfibonacci 2020-09-22 04:11:32
So I have table A with the primary key column and another table B with a foreign key column

Cardinality is 1..* from A->B

My question is that are the values of the foreign key column stored separately in table B, or they are simply referenced to the existing values of the PK column in table A

piterden 2020-09-22 04:22:19
Try to select * from table B without A
piterden 2020-09-22 04:22:44
drfibonacci 2020-09-22 04:11:32
So I have table A with the primary key column and another table B with a foreign key column

Cardinality is 1..* from A->B

My question is that are the values of the foreign key column stored separately in table B, or they are simply referenced to the existing values of the PK column in table A

What do you mean referenced?

drfibonacci 2020-09-22 04:23:28
piterden 2020-09-22 04:22:44
What do you mean referenced?

A reference to the PK column, a pointer in terms of C

piterden 2020-09-22 04:23:29
And what about information about those references?
piterden 2020-09-22 04:25:06
drfibonacci 2020-09-22 04:23:28
A reference to the PK column, a pointer in terms of C

Of course they are stored physically. Reference is just a pointer to a table

piterden 2020-09-22 04:25:22
Not to a value
drfibonacci 2020-09-22 04:26:25
Okayy I see
But lets consider a user table with 1 mln users, who have UUIDs and for simplicity, we consider that they are bigints
drfibonacci 2020-09-22 04:27:20
Now, in another table, say we are storing some logs, and the FK of this table is to the user table
drfibonacci 2020-09-22 04:27:52
Don’t you think that a lot of extra data is being stored?
piterden 2020-09-22 04:27:56
drfibonacci 2020-09-22 04:26:25
Okayy I see
But lets consider a user table with 1 mln users, who have UUIDs and for simplicity, we consider that they are bigints

UUIDs??? WTF? That table has id column

drfibonacci 2020-09-22 04:28:16
I just meant unique ids yes 😛
piterden 2020-09-22 04:28:51
You mean exactly what you have wrote
piterden 2020-09-22 04:29:42
drfibonacci 2020-09-22 04:27:52
Don’t you think that a lot of extra data is being stored?

Databases were made to store data

drfibonacci 2020-09-22 04:30:44
piterden 2020-09-22 04:29:42
Databases were made to store data

Any way to manually circumvent this behavior?
Like in python, explicit assignment points to same object in memory

piterden 2020-09-22 04:33:57
drfibonacci 2020-09-22 04:30:44
Any way to manually circumvent this behavior?
Like in python, explicit assignment points to same object in memory

Okay, how the one taken row from B would know to which row it should be referenced in A?

drfibonacci 2020-09-22 04:36:20
piterden 2020-09-22 04:33:57
Okay, how the one taken row from B would know to which row it should be referenced in A?

Via the reference to a row of PK in A

The values of PK are already indexed in the memory, so all one would require is a pointer to that particular memory location

|