Category "mysql"

MYSQL query between two timestamps

I have the following entry in my DB table eventName(varchar 100) -> myEvent date(timestamp) -> 2013-03-26 09:00:00 and I am trying to use the following

(Incorrect integer value: '' for column 'IdSkjell' at row 1)

Hey everyone i have searched for this but i dindt find the right answer just the topic. So i cant find out what the problem is in my code. (Incorrect integer v

PDOException SQLSTATE[HY000] [2002] No such file or directory

I believe that I've successfully deployed my (very basic) site to fortrabbit, but as soon as I connect to SSH to run some commands (such as php artisan migrate

Set SQLAlchemy PickleType Column Size

I am trying to save a python list to an SQL table in a PickleType column which is defined in the class object as text = Column(PickleType). When I try to commit

Django 3.2+: implementing case-sensitive string comparisons within MySQL tables

Django documentation (3.2 to 4.0) states: In MySQL, a database table’s collation determines whether string comparisons (such as the expression and substr

MySQL error: Illegal mix of collations for operation 'UNION'

I am Boxonix! I am currently making a comment section for my website, and I'm tiny a bit in trouble! This "Illegal mix of collations for operation 'UNION'" pops

Dependency error while installing mysql workbench on ubuntu 12.04

I am trying to install mysql workbench. I am getting below error. It seems that it looks for mysql in some default directory. I have all the required things ins

Select option from dropdown menu with PHP and mySql

I tried to create a simple select dropdown menu from MySQL database. However, it does not work on my code. Here is my code: <?php

Node Mysql is breaking node app entirely

For some reason, my node app (specifically the node module) is getting a "Too many connections" error that I can't figure out what is actually causing it, but r

Connection Java - MySQL : Public Key Retrieval is not allowed

I try to connect MySQL database with Java using connector 8.0.11. Everything seems to be OK, but I get this exception: Exception in thread "main" java.sql.SQL

Debezium mySql connecter not able to capture insert and updater operation

I am trying to implemnt CDC piline with Debezium mysql connecter and kafkal But Source connecter not able to pusblish event for insert and update operation in t

MySQL - Check if multiple values in same IN clause

Is there a way to check if multiple values exist in the same in clause, without rewriting the same IN clause? Example Employee Table: +----+--------------+--

SQL query to check if a name begins and ends with a vowel

I want to query the list of CITY names from the table STATION(id, city, longitude, latitude) which have vowels as both their first and last characters. The resu

WordPress Subquery returns more than 1 row on SELECT

I am executing this query with core cron by custom Wordpress plugin: // MAKE SQL CALL $SQL = "SELECT ".$wpdb->prefix."postmeta.post_id FROM ".$wpdb->

Is there any way to get all ookla server list and store this into a data base?

i wanted to insert all available ookla servers into my data base for the speed test purpose for my android application. But i am not getting any way to find out

How to solve usng temporary;using filesort using MySQL SELET SELECT UNION SELECT

I have this query: SELECT * FROM (SELECT a.id AS id, a.user_id AS user_id, aa.power * a.amount AS total_power, a.group_number A

django.db.migrations.exceptions.NodeNotFoundError while upgrading django

I am upgrading my django project from django1.5 to django1.11.10. while upgrading when I run ./manange.py migrate I am getting django.db.migrations.exceptions.N

How to create time attribute in SQL?

I tried to create a table this way: create table attendance ( userId char(10) primary key not null, name varchar(35) not null, date_attenda

MySQL: All tables OK but still ERROR 1577 (system tables used by Event Scheduler were found damaged)

From my syslog: mysql[1663]: ERROR 1577 (HY000) at line 1: Cannot proceed because system tables used by Event Scheduler were found damaged at server start I

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

I am developing a PhoneGap application that gets some information from MySQL Database. I am struggling when I try to open a HTML page that contains two select i