Category "mysql"

Query to retrieve rows where a value has changed

trying to get back into some very rusty SQL skills and already over my head! I have a table (example below) where each week I upload rows that indicate the prog

How to fix a Laravel Sail "SQLSTATE[HY000] [1130] Host 'XXX.XXX.X.X' is not allowed to connect to this MySQL server" error

Laravel: 9.2Mac OS: 12.3.1Docker Desktop: 4.5.0 I have installed a default Laravel project using sail. My docker-compose.yml file includes the following: mysql:

Rank actors with movies released in India based on their average ratings. Which actor is at the top of the list?

-- Note: The actor should have acted in at least five Indian movies. -- (Hint: You should use the weighted average based on votes. If the ratings clash, then t

Linux Bash to mysql: Select or delete record with external value

I have a MariaDB (mysql) database with a table which looks like this: MariaDB [DevicesPool]> show columns from Dirs_and_Names; +-----------------+-------

Kafka producer can't create topics and throwing continuous error after creating Debezium MySQL connector

I am using Debezium as a CDC tool to stream data from MySql. After installing Debezium MySQL connector to Confluent OSS cluster, I am trying to capture MySQL bi

Use date (-1 day) on next row to be the end date for current row

I am trying to self join in my current script in order to find the next row and then whatever day specified it should minus 1 day from it and put that in the e

Inserting NaN value into MySQL Database

I have some data that contains NULLs, floats and the occasional Nan. I'm trying to insert this data into a MySQL database using python and MySqldb. Here's the

Install mysql client in docker image

I am trying to build a docker image for php, which can handle database dumping in my mysql container. The problem is that it seems to install the mariadb versio

GRANT 'role' TO 'user'@'%' denied with Error Code: 1227 in mysql 8.0 AWS

We are using MySQL version 8.0 on AWS RDS. Logged in with Admin user on the database using MySQL Workbench version 8.0.16 and performed below steps. CREATE ROL

Docker Container DB dont show up

Hello currently I get in touch with Docker. I am doing their getting started and I ran into a problem which I cant solve and I dont understand why it dont work.

Mysql error 1045 (Access denied for user) while using flask_mysqldb

Operating System: MacOS MySQL version: 8.0.16 Code to connect MySQL: app.config['MYSQL_HOST']='localhost' app.config['MYSQL_USERNAME']='root' app.config['MYS

Error executing DDL "drop table Player if exists" via JDBC Statement

Creating a spring mvc project with database using java configuration . The application gives error for tables operation like create, drop, alter operation for

MySql: How to show India first and rest of the country ascending order using mysql query?

Suppose the table have 1 column only and have values Canada, London, India, Australia. Now using MYSQL query how to display India 1st and rest of the name after

How to connect locally hosted MySQL database with the docker container

Through docker-compose.yml I am able to run the application. Now we want to move the application to production, But we don't want to use the container database.

Show the name and the extension where the capital is an extension of name of the country from the table CITY

For example, In 'Monaco-Ville' the name is Monaco and the extension is -Ville. This problem is from SQLZOO. I am having trouble making my solution look like the

node.js async/await using with MySQL

I need to get all results synchronized and append to a string with async/await keywords like c#. I am new to node.js and I can not adapt this new syntax to m

How do I get DISTINCT columns and COUNT occurrences of sub DISTINCT columns [closed]

I am having some difficulty building a file download statistics database and displaying the information how I would like. Table: customer_stat

definer/invoker of view lack rights to use them

When I import my database all the tables are imported successfully, but when I'm trying to access the "views" then I got the message below on phpmyadmin's scree

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

I have looked at around 50 of the same question on here, but none of them seem to be fixing my problem. I can't remotely connect to my MySQL database through a

Failing to connect to an Amazon Aurora MySQL from SpringBoot

I want to connect my spring boot application to AWS Aurora MySQL RDS. The problem is while there are plenty of examples of AWS MySQL RDS. I cant find an example