Category "mysql"

ERROR: Unable to start Group Replication 3096 (HY000) Can't add nodes to cluster INNODB

Setup: [All machines (4) are connected on LAN, updated, upgraded and they see themselves and work fine.] I've installed mysql in all 4, I created a cluster b

How to install mysql-server in a Dockerfile?

I have a complex Dockerfile which install much more than just mysql-server so I cannot start from an existing mysql container. When removing all the extra-stu

How to repaire global_priv mysql

When I try to add User account in phpmyadmin then the error appear Error Message: Index for table 'global_priv' is corrupt; try to repair it

compare two tables having same column name but different date column names

I have table A id1 dt x1 2022-04-10 a2 2022-04-10 a1 2022-04-10 x1 2022-05-10 x2 2022-04-10 y2 2022-04-10 y1 2022-05-10 x1 2022-06 -10 Table B id1 dt a1 2022

Doctrine2 DBAL Exists query

I would like to ask for your help with Doctrine2 DBAL query built with QueryBuilder. I'm used to ORM, but I think it's an overkill for such query which is being

Array divided into days of the week

I want the array to be divided into days of the week according to the date specified in BETWEEN and AND public static function showDataByEmployer($employer) {

sqoop merge-key creating multiple part files instead of one which doesn't serve the purpose of using merge-key

Ideally, when we run incremental without merge-key it will create new file with the appended data set but if we use merge-key then it will create new whole data

Best and most efficient way for ELO-score calculation for users in database

I'm having a hard time wrapping my head around the issue of an ELO-score-like calculation for a large amount of users on our platform. For example. For every u

Advantages and disadvantages of installing a LAMP using lamp-server^ package vs individual Apache, PHP, MySQL installation

I want to setup LAMP in Azure server, There are approachs to setup LAMP using below methods LAMP Package : sudo apt-get install lamp-server^ Apache, PHP, MySQL

Mysql set default value to a json type column

I heard that mysql version prior to 8.0.13 accept default value for json type column, so I using the cmd: ALTER TABLE templates CHANGE COLUMN values JSON NOT N

Connection failed: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: No such host is known. Fatal error: Uncaught Error: [closed]

I'm a beginner in PHP and was trying to access my database after clicking on the login I get the error below while establishing connection Con

SSMA Column "column" does not allow DBNull. Value

I'm right now trying to migrate a Mysql db to Sql Server, I found in some forums that they recommend to use SSMA (SQL Sever Migration Assistant) but when I try

Golang MySQL error - packets.go:33: unexpected EOF

I am switching my entire code base from PHP to Go and during several processes that run, I randomly get this error: [mysql] 2016/10/11 09:17:16 packets.go:33:

SQL "with" clause - Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS

I have the following query which works fine: select a.dataId, a.my_no, b.my_attribute from myDB.table_a a left join myDB.table_b b on a.my_no = b.my_no orde

mysql - avoid escaping double quotes in json functions

When I issue... select JSON_REPLACE('{"tbl" : "cnf"}', '$', '{"tbl":"cnf4"}'); I get the following : +------------------------------------------------------

Yii2 add LIKE condition with "%" wildcard on the one side

I want to add like condition with % wildcard on the one side, like: where name like 'value%' My code: Table::find()->filterWhere(['like', 'name' , $_GET[

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

I want to return HTML from PHP. I found a solution from StackOverflow which is insert JSON_HEX_QUOT | JSON_HEX_TAG after array in json_encode but it does not wo

What are MySQL InnoDB intention locks used for?

I have read the MySQL mannual about intention lock: http://dev.mysql.com/doc/refman/5.5/en/innodb-locking.html#innodb-intention-locks It says that "To m

mysqld folder in /var/run/ keeps deleting and re-creating itself

I couldnt start mysql on my ubuntu server and got the error message ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysq

Homebrew - brew mysql 8 - Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I tried a lot to install MySQL8 via Homebrew on Mac 10.14.5. I was running MySQL 5.7 before that and did the following: I removed MySQL completely via this tuto