Questions tagged [mysql]
MySQL is an open-source database owned by Oracle. ServerFault topics include how to run the server. For more MySQL specific questions like backup/restore/recovery/configuration, dba.stackexchange.com is probably a better home.
8,731
questions
1
vote
1
answer
683
views
yum install mysql-devel causing openssl11-devel conflicts with 1:openssl-devel-1.0.2k-24.amzn2.0.10.x86_64
I am tring to install RMysql Package however it throughs below error - which says mysql libraries are not installed.
I tried installing them using the yum command but there is a conflict with openssl....
0
votes
0
answers
51
views
Proxy Error - Java Web Applications / Glassfish / MySQL / Apache
I have some Java Servlet Web applications running on Glassfish, on an AWS Linux server. The applications are integrated with a MySQL database, installed on the same server. Also, access management is ...
0
votes
0
answers
62
views
have_openssl and have_ssl changed to disabled
after i created prerequisite files for having connection with mysql using SSL with commands:
openssl genrsa 4096 > ca-key.pem
openssl req -new -x509 -nodes -days 9999 -key ca-key.pem > ca-cert....
0
votes
0
answers
225
views
mysql SSL is required but the server doesn't support it
i generated these files in my master machine :
openssl genrsa 4096 > ca-key.pem
openssl req -new -x509 -nodes -days 9999 -key ca-key.pem > ca-cert.pem
openssl req -newkey rsa:4096 -days ...
0
votes
1
answer
250
views
connection refused mysql with telnet
i have 2 machines that can see each other and ping my issue is i want to telnet from slave machine to master machine and this is what i get:
slave@slave:~$ telnet 192.168.1.131 3306
Trying 192.168.1....
1
vote
1
answer
70
views
Postfix Dovecot connection with MySQL8 SSL mode disabled
I have a production running installation of Postfix 3.1 and Dovecot. Recently upgraded to a new version of MySQL, passing from 5.6 to 8 hosted in a new server.
The problem now is that postfix and ...
0
votes
2
answers
853
views
Docker Mysql container: Connection Refused
So I have the following docker-compose.yml and .env file.
version: "3"
services:
cx_cache:
container_name: ${APP_NAME}_cache
image: redis:7.2.2-alpine
networks:
- ${...
0
votes
1
answer
148
views
Mariadb active passive failover doesn't work with HAProxy
What is wrong with my HAProxy config?
This thread kind of similar, but still not the same: Haproxy mysql failover load balancing
I have an active-passive Mariadb galera cluster.
Today on the master ...
0
votes
0
answers
43
views
Importing mysql database into Oracle OCI Ubuntu instance
I recently spun up a Ubuntu instance on Oracle OCI (https://cloud.oracle.com) to host a Laravel application. I need to be able to import a large-ish mysql database, but every time I try, it hangs up ...
0
votes
1
answer
80
views
Script is not taking systemctl commands
I have created a custom service to {start|stop|restart|reload|force-reload|status} for StoneDb(A MySQL modified version), but when checking the status then I get this error:
Which is clearly means ...
0
votes
0
answers
58
views
E-Mails are not storing. Postfix, Dovecot & MySQL
I am trying to set up a mail server with Postfix & Dovecot using MySQL to store the aliases, domain & user.
The issue is, users are not receiving emails.
According to the log files, the ...
0
votes
0
answers
71
views
MySQL Database errors with deadlock when restoring backup
we recently wanted to switch from a single MariaDB server to a replicated Percona XtraDB instance. For this purpose I set up an XtraDB cluster in our kubernetes cluster with 7 nodes distributed across ...
0
votes
0
answers
64
views
Can AWS NLB be used to load balance requests to Read Replicas?
This article from Nginx describes how Nginx TCP load balancing can be used against MySQL cluster. In the first diagram, I would like to replace the Nginx LB with AWS NLB where, the MySQL cluster runs ...
2
votes
1
answer
130
views
Is there any way to encryption password?
I'm trying master-slave replication in MySQL, and I have a question about plain text passwords.
When I created an account on the master server I tried
select * from mysql.slave_master_info; and the ...
0
votes
2
answers
109
views
MySQL getting overwhelmed after restart after an apparent crash
I found my site dead this morning, with every request timing out. systemctl restart nginx made no difference - but systemctl restart mysql did.
Last night I set a long-running UPDATE query running. ...
1
vote
0
answers
1k
views
Connecting to MariaDB server: ERROR 2013 (HY000): Lost connection to server at 'handshake: reading initial communication packet', system error: 11
I am trying to connect to an AWS hosted (RDS) MariaDB database (engine version 10.6.14). The database is hosted on a private subnet but it's accessible through a bastion host. I use an SSH tunnel to ...
0
votes
1
answer
108
views
Getting below error on ActiveMQ "Classic" message broker log. I'm looking for some solution to find the root cause and fix for this issue
Getting below error on ActiveMQ "Classic" message broker log. I'm looking for some solution to find the root cause and fix for this issue.
Sep 6 16:10:46 SERVER activemq_db8159[1168628]: ...
1
vote
0
answers
149
views
Replicating foreign keys with AWS DMS Full load Ongoing replication - MySQL
I am using AWS DMS Full Load Ongoing Replication (CDC) to replicate data from a MySQL RDS to an on-prem MySQL server (both of them running MySQL 8). Before starting the replication process I'm dumping ...
1
vote
1
answer
296
views
MariaDB randomly crashes
I've encountered a peculiar issue related to my MariaDB database instance (version 10.2) that causes my MariaDB service to stop unexpectedly. I've attempted to investigate the problem by regularly ...
0
votes
0
answers
89
views
Fluentd logs not sent to Elasticsearch on K8s
I have a cluster in VirtualBox to learn kubernetes. I have a deployment that contains MySQL and phpMyAdmin. I created a DemonSet that has the fluentd image and collects the logs to transmit them to ...
2
votes
1
answer
281
views
MaxScale doesn't connect to Galera Cluster
I am working on a distributed HA cloud system and I have a Galera Cluster with 3 separated servers in Docker Swarm. It works as expected.
I have 3 separated services for the Galera members due to ...
0
votes
1
answer
580
views
Can’t start mysql - error.log constantly written
Recently my sites hosted on an Ubuntu server started to display "Error establishing a database connection".
Connecting to the server, it looks like mysql is being restarted constantly (3s ...
1
vote
1
answer
448
views
XAMPP mysql (Mariadb) has become unreliable
I have used XAMPP for years in Windows without any problems, but lately, it has become unreliable due to mysql (MariaDB). In XAMPP Control Panel mysql sometimes starts alright, sometimes it will crash ...
0
votes
0
answers
114
views
Applying MySQL binlogs that are too large
I am trying to recover a MySQL crash. I have data as of Monday and binlogs since then, and want to apply the binlogs as the combination would be a complete set of the data. The trouble is that ...
1
vote
0
answers
175
views
MYSQL use too much disk (read / write)
I have big problem with my server. I am using Ubuntu linux version 22.04. The problem is in the write / read disk (light for the disk is all the time ON) when I have turn on apache (PHP) and MYSQL. ...
1
vote
2
answers
155
views
Percona MySQL 8.0.25-15 filling up slow log with headers only
Has anyone experienced an issue where when the slow log is enabled with the following options:
root@(none)> show global variables like "%slow_query%";
+-----------------------------------+...
0
votes
0
answers
327
views
Why does my Docker MySQL lose privileges for some users?
I am using the mysql 8 image in a docker compose file. Periodically I discover that the mysql user I set up for a database no longer has privileges on that database. The user still exists and has ...
0
votes
0
answers
325
views
Create SSH tunnel and route MySQL traffic through using NGINX reverse proxy
My company's goal is to route MySQL traffic through an SSH tunnel, but using a reverse proxy through NGINX. We created a Linux box in our Azure environment, but are struggling to complete the process.
...
0
votes
1
answer
250
views
Passing a user input to an ssh command
I'm currently trying to create a shell script that will execute a mysqldump on a remote mysql database and then copy the output file back to my local machine. The problem I'm running into is that I ...
0
votes
0
answers
203
views
My PHP sites do not work with mysql router
I recently set up a mysql innodb cluster, and have configured mysqlrouter to sit in front of it.
On my PHP applications, if I change the port from 3306 to 6446, the application hangs when it tries to ...
0
votes
0
answers
90
views
MacOS MySQL Client Gets Stuck on Query That is a Certain Size
My MySQL client gets stuck on a query when the output is a certain size. When it's small enough, the query will successfully output. The client is connecting to a remote server (Ubuntu 18.04). When I ...
0
votes
0
answers
61
views
Which is the correct capability in Courier SMTP config to get user's password (encryption type)
MySql: 8.0.34-0ubuntu0.22.04.1
I have followed this guide: Postfix With Courier IMAP Mail Server Installation (unfortunately they do not answer questions).
I had to change the encryption method for ...
0
votes
0
answers
142
views
Disable auto reconnect for remote client connections in mysql
I use below version of MYSQL in my DB server.
root@XXXXXX-test-server:~# mysql -V
mysql Ver 14.14 Distrib 5.6.16, for debian-linux-gnu (x86_64) using EditLine wrapper
root@XXXXX-test-server:~#
...
0
votes
1
answer
637
views
MariaDB 10.3.38 does not start after change from MySQL 5.7.41
I replaces MySQL 5.7.41 with MariaDB 10.3.38 on Ubuntu 20.04.
Unfortunately MariaDB does not start by itself over systemctl:
sudo systemctl status mariadb ● mariadb.service - MariaDB 10.3.38 database ...
1
vote
0
answers
308
views
Using MySQL/MariaDB replication, how to know when the Replica is in a consistent state?
This is a question about MariaDB (mostly) and a replication that I am considering.
For this replication, the Primary database is updated every minute by a process which can take about 15 seconds to ...
2
votes
1
answer
610
views
Is it possible to have MySQL/MariaDB bidirectional replication?
I am trying to install replication on several MariaDB servers.
With no experience at all on this.
I am wondering something.
Would it be possible to have both servers acting simultaneously as master ...
0
votes
0
answers
54
views
Getting broken pipe error after spending significant time idle in mysql command line
I often spend a lot of time in my MySQL console - managing databases, making sure the integrity is in tact and browsing through recent records for possible vulnerabilities.
Whenever I am active with ...
0
votes
1
answer
77
views
Unknown MySQL syntax error during the WordPress installation
I'm trying to install Wordpress on my local server according to instruction described on this page
And now I'm stuck on this step:
GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY '...
0
votes
1
answer
178
views
Unable to connect to my server
I'm unable to connect to my own server, which has a MySQL database which I want to access.
I correctly opened the 3306 port on the router and called my internet provider that confirmed so.
But when I ...
0
votes
3
answers
64
views
4 unicode chars appear as first few characters in file which don't seem to show in vim
vi data.sql :
-- MariaDB dump 10.19 Distrib 10.4.28-MariaDB, for Win64 (AMD64)
But when I do head -n 10 data.sql I get the first line as
��-- MariaDB dump 10.19 Distrib 10.4.28-MariaDB, for Win64 (...
0
votes
0
answers
997
views
mysqld[1108] [Warning] Aborted connection 7466 to db: 'unconnected' user: 'unauthenticated' host: '127.0.0.1'
I am running Ubuntu Server 20.04. It is a LEMP server running Mariadb. When I run the command sudo service mariadb status I get the following warnings:
Jul 28 00:18:59 mail.example.com mysqld[1108]: ...
1
vote
1
answer
172
views
MariaDB / MySql Warning after Netdata installation. "Access denied for user 'netdata'@'localhost' (using password: NO)" How to fix?
I have configured Netdata on an Ubuntu 20.04 Server LEMP server, according to this Linuxbabe.com tutorial.
After installation, I run the following command
sudo systemctl status mariadb.service
which ...
1
vote
1
answer
259
views
Memory consumption on virtual server too large for applications being run
I have a Linux Ubuntu virtual server at Digital Ocean with the following specs: 1 vCPU, 2GB of memory, and 25GB of SSD storage.
The server is running a single WordPress website with around 400 unique ...
0
votes
0
answers
15
views
H3C server requirement [duplicate]
I am searching for a server that can best fulfill my requirements. I need it specifically for the best DB I/O performance for a 10-million record database. I am looking for generation-specific details ...
1
vote
1
answer
102
views
MySQL server slows down 24 hours after reboot
I have a MySQl server which slows down every 22-24 hours after restarting mysql. After restarting mysql it starts working properly and after about 20 hours it starts to slow down. I increased the ...
0
votes
1
answer
661
views
MySQL doesn't start on Ubuntu 22.04; unknown variable 'mysqlx-bind-address=127.0.0.1'
I'm facing an issue with installing MySQL server on Ubuntu 22.04. When I try to start the MySQL service using the command sudo service mysql start, I get the following error message
The error message ...
1
vote
0
answers
524
views
MariaDB Not Starting
I left it here, reverting to an outdated backup, as I needed to get the system up and running. If there are new answers and things to try, I will try so that the issue can be resolved. I shut down the ...
-1
votes
3
answers
344
views
how to design a sql query to have sub-columns in the result?
I tried several sql queries but it does not meet my expectations because in the result I cannot have sub-columns
i need to design a sql query for the following result (have sub-columns in the result):
...
0
votes
0
answers
270
views
Why is my Default Apache Guacamole Web Client Admin Login Creds Invalid?
I'm currently setting up an Ubuntu server to run an Apache Guacamole RDP Gateway, and for some reason, when I try to login to the web client, it's giving me an invalid login error when I use the ...
0
votes
1
answer
305
views
Connection to Mysql database failing from different clients
I work with an ETL tool called airbyte to move data from various data sources to our main data warehouse. I am also asking this question in the airbyte slack channel, but would like to ask it here as ...