skip to Main Content

Why when i use primary modifier in laravel I get error?

Hi friends This is my code in laravel: Schema::create('programmer', function (Blueprint $table) { $table->id(); $table->string('email', 155)->unique(); $table->integer('primary')->primary(); $table->timestamps(); }); I got this error: SQLSTATE[42000]: Syntax error or access violation: 1068 Multiple primary key defined (Connection: mysql, SQL: alter table programmer…

VIEW QUESTION

Mysql – extracting emails by removing md5 hashes from text

recovered a client sql , current situation is we need to mail the users from sql . the data format atm is : (sample) : [email protected] vyourclientd8572fee33aec16b3a22cc04629e1b33you3elient@yopmail.comy fascwail.com3153741243f27e84f73a9f018f239725allg00ds@fastmail.coma [email protected] pwdflamingo900197393e11808e7f27ebf4331f0860c9cscrfdsold120@gmail.com hrdpfreakdc30025992230a7e564581bf7360fe36newnewuserfir22e@gmail.com so it user|md5|email|erors the hard part to delete the…

VIEW QUESTION

Hibernate transaction with mysql

On hight loaded service periodically I see a deadlock in DB ------------------------ LATEST DETECTED DEADLOCK ------------------------ 2023-03-06 22:48:18 0x7fa6a24af700 *** (1) TRANSACTION: TRANSACTION 209985062, ACTIVE 2 sec starting index read mysql tables in use 1, locked 1 LOCK WAIT 2…

VIEW QUESTION
Back To Top
Search