Category "mysql"

How can I apply a condition to multiple rows using SQL? CASE WHEN / PARTITION OVER

I am trying to create a column that shows Yes or No based on a set of conditions. If the conditions are met, then 'Yes' would apply to every row in the group (e

Springboot upgrade from 1.x to 2.3.x MySQL performance issue

Trying to upgrade Springboot from 1.x/java8 to 2.3.x/java 11(AWS Corretto 11) MySQL: Aurora Connectionpool: tomcat datasource Issue: with the upgraded versio

find nearest location using node js and mysql telegram bot

I was trying to do a telegram bot that finds a nearby location using node js and mysql. but after finding users coordinate(latitude,Longitude) in mycase (mylat,

How to retrieve MySQL column content stored as mediumblob?

In a project that was passed on to me there is a MySQL database that is used to store lots of data. Each database has a table that contains lots of text snippet

Entity Framework: Getting exception while inserting row in MySQL Table

I recently switched my database from SQL Server to MySQL. I am still using Entity Framework 6 to do CRUD operation in database. When I was using SQL Server as b

Why register MysqlConnection as Service?

I'm trying to learn asp.net core 6.0, and I have a website that I'm working on. I needed a mysql connection in my website. I opened google and started searching

Error when I adding FULLTEXT INDEX "SQL Error (1062): Duplicate entry '' for key '*UNKNOWN*'"

I have specific error when I'd like to add FULLTEXT INDEX to column street. My code is below. ALTER TABLE offer_private_14 ADD FULLTEXT INDEX idx_street (street

WhatsApp integration using API in Asp.net and angular Js

How can I integrate WhatsApp in CRM project using asp.net(MVC) and Angular Js.Kindly help. Thank you!

Ubuntu 20.04 - Stopped MySQL. Now it won't start (error 13, permission denied)

Running a DigitalOcean LAMP Stack (1GB VPS) on Ubuntu 20.04, I was getting intermittent "Error establshing a database connection" errors in Wordpress when uploa

Write a Query in MySql server that prints a list of employee names who have been employed for less than 10 months having salary>2000

I want a SQL query that prints a list of employee names who have been employed for less than 10 months having salary>2000. Sort this result by ascending emp_

"Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?" in Next.js API route

Before I was trying to connect mysql to server, I already connect mysql to my localhost and it works. But now I'm trying connect mysql to a server and it does n

MySQL format number with unknown number of decimal places

In MySQL, I only want to add thousand separator in the number like 1234.23234, 242343.345345464, 232423.22 and format to "1,234.23234", "242,343.345345464", "23

Creating procedure that add value when it doesn't exist (Syntax error)

I'm trying to create a procedure that add a value that doesn't exist but I'm currently getting a syntax error. I don't know how to correct the error. Any help w

Django & MeMSQL Error when running migrate.py: django.db.utils.OperationalError: (2012, 'Error in server handshake')

I have a Django application with a default MySQL database. I want to move my default Database to MeMSQL. I set the credentials in settings.py to be: DATABASES =

Problem when creating mysql database on M1 mac: symbol not found in flat namespace '_mysql_affected_rows

I'm trying to create a db for my rails project using [email protected] which was installed via homebrew. The installation was succesfull, but when I try to run: bin/rak

Got Error while installing mysqlclient in django project on cPanel

Requirements.txt contains: asgiref==3.4.1 Django==3.2.9 django-isbn-field==0.5.3 mysql-connector-python mysqlclient phonenumberslite==8.12.42 Pillow==9.0.1 pyth

IF statement sub query optimisation in MySQL

select if(`num`>99, (select `value` from `sub` where `id`=`main`.`num`), "") as `result` from `main` This all works fine but MySQL is very inefficient as i

IF statement sub query optimisation in MySQL

select if(`num`>99, (select `value` from `sub` where `id`=`main`.`num`), "") as `result` from `main` This all works fine but MySQL is very inefficient as i

I cannot create a auto generated date time in mysql workbench

I'm trying to create an auto-generated date-time using MySQL workbench, timestamp seems not working This is the error Operation failed: There was an error whil

Drupal cannot access MySQL Docker container

This is relevant for Drupal 8.9.3, MySQL 5.7 and Docker (with docker-compose.yml) file. Specifically on the Drupal Install step "Set up database", Drupal throws