Category "mysql"

Superset with Docker cannot add connection to external mysql

I am newbie on using Ubuntu, I am trying to install apache-superset and successfully installed it by using Docker by directly sudo docker pull apache/superset,

How to fix dbWriteTable error "unable to find an inherited method for function 'dbWriterTable' for signature...?"

I want to insert data in MySQL from a dataframe in R. I managed to connect without problems from R to MySQL using dbConnect, however when I try to insert my dat

replace multiple space with single space in a column

There are a lot of rows with multiple spaces in column title and I want to replace them with a single space. update abc set title = REPLACE(title, " ", " ");

Import sql file using express js

I am trying to import the sql file in express js. i try the following codes but it is not work while using mssql and fs module fs.readFile(__dirname +'/databa

How to fix dbWriteTable error "unable to find an inherited method for function 'dbWriterTable' for signature...?"

I want to insert data in MySQL from a dataframe in R. I managed to connect without problems from R to MySQL using dbConnect, however when I try to insert my dat

Unable to Edit config.inc.php

Running: macOS High Sierra Version 10.13.3, zsh w/ iTerm2 Trying to set up a local environment with xampp, which has worked just fine for me in the past. Howe

Automate mysql_secure_installation with echo command via a shell script

I am trying to automate mysql_secure_installation script with automated response. My code is as follows : echo "& y y abc abc y y y y" | ./usr/bin/mysql_se

How can I make a full text index of the column?

Here is my current migration: class News extends Migration { public function up() { Schema::create('News', function (Blueprint $table) {

What is the difference between MySQL and NoSQL Database?

I have been asked this question in several interviews and I am looking for answers in the terms of how do we choose between MySQL database and NoSQL database fo

How to add a JDBC driver to a Jenkins pipeline?

I want to create a database within a pipeline script to be used by the deployed app. But first I started testing the connection. I got this problem: java.sql.S

Get unique values of a field and prints its length

Table Name: Worker, Fields : worker_id | first_name | last_name | department I have a table name worker and i wanted to write an SQL query that fetches the uni

Return Default value if no row found

I'm building query to search multiple rows from database like SELECT * FROM table1 WHERE col1 = '012311' OR col1 = '0123631' OR col1 = '091233'

java.sql.SQLSyntaxErrorException: Unknown column 'id' in 'where clause'

excuse me, this is the first time I have asked a question on this platform. I am generating a code in Java to be able to make a query in a database, but when I

Why use GTIDs in MySQL replication?

When it comes to database replication, what is the use of global transaction identifiers? Why do we need it to prevent concurrency across the servers? How is th

How do I create a mysql table using a variable name in Python?

I've tried to use the article Python MySQLdb execute table variable as an example, but so far no joy. I'm trying to create a table whose name is a concatenation

Cannot uninstall mysql-server-8.0

after installing mariadb with mysql already installed, i had issues and mysql wasent working so i tried to uninstall mysql and the package broke. after frustrat

Cannot uninstall mysql-server-8.0

after installing mariadb with mysql already installed, i had issues and mysql wasent working so i tried to uninstall mysql and the package broke. after frustrat

How to improve my tables and queries for Big Data applications?

I created an API on Symfony which produces more than 1 million entries by day into one of the MySql tables. This table structure is defined this way: After s

Сan't automatically connect to RDS via the script on EC2?

Im use terraform to create infrastr. in AWS. I'm using script on ec2 userdata, that connects to rds.But this script doesn`t work. #! /bin/bash yum update -y yu

How to display MySQL table using php and edit it in a web browser

i am using a while loop to display all the data in my MYSQL table. the problem is that its not showing the newest entry. after adding a record it does not show