MariaDB Galera 3-Node Cluster Sometimes Doesn’t Serves

I have 3 Node MariaDB Galera cluster. I am using "mariabackup" as the wsrep_sst_method, but the database system doesn’t work properly. I can say that sometimes there are 100 connection requests per second from clients, so it is a bit bussy system but sometimes the db system doesnt serves for 2-6 seconds. Connections are lost or the db is unreachable, so when I check in that times the wsrep status is not synched. What should I do to build a 3 Node MariaDB system that can work properly for a bussy connection traffic? There must be something?

MariaDB: No database selected error on some query

I have a php code that rise a query against a MariaDB (using MariaDB 10.5.11 on debian 11) table; I use php-mysql prepared queries for this task as reported in the code below:

if($  this->dbcon->begin_transaction() === false) {         $  this->errNum = -1;         $  this->errText = "Unable to start transaction: " . $  this->dbcon->errno . " - " . $  this->dbcon->error;         return false; }  try {     $  query = file_get_contents("recursivelyRemoveShares.sql");   // (1) If replaced with a SELECT works fine!      if($  query === false) {         $  this->errNum = -1;         $  this->errText = "Unable to read query (0)";         return false;     }      $  stmt = $  this->dbcon->prepare($  query);      // Err 1046: No database selected     if($  stmt === false) {         $  this->errNum = -1;         $  this->errText = "Unable to prepare statement: " . $  this->dbcon->errno . " - " . $  this->dbcon->error;         return false;     }          $  stmt->bind_param("s", $  uuid);     $  stmt->execute();      // Commit transaction     $  this->dbcon->commit(); } catch (Exception $  ex) {     // Rollback transaction if something goes wrong     $  this->dbcon->rollback();          $  this->errNum = $  this->dbcon->errno;     $  this->errText = $  this->dbcon->error;     return false; } 

When running $ stmt = $ this->dbcon->prepare($ query); the database raise an Err 1046: No database selected; however I did some other operations before that executed successfully, using the same DB connection.

This is the query I read with file_get_contents:

DELETE FROM `shares` WHERE `itemuuid` in (   WITH RECURSIVE files_paths (id, parent) AS   (     SELECT uuid, parentuuid       FROM core_data       WHERE uuid = ?     UNION ALL     SELECT e.uuid, e.parentuuid       FROM files_paths AS ep JOIN core_data AS e         ON ep.id = e.parentuuid   )   SELECT id FROM files_paths ) 

Note that is a recursive CTE query.

If I replace the $ query with a SELECT query, all the code runs correctly (no error 1046 raisen).

Any help or idea is appreciated.

WordPress Hosting – 80% OFF | LiteSpeed, MariaDB, SSL, PHP7 & CDN – HostPoco!

We created and refined the solution for websites that use WordPress and WooCommere, the largest CMS and eCommerce platform in the world. A dedicated support team is made up of WordPress experts.

We believe that the best for our customers is only possible. We have built our web hosting platform on Google’s lightning-fast, yet incredibly stable cloud infrastructure.

HostPoco’s management team has decades of experience in WordPress and web hosting. They work towards a single goal: to provide our clients with the best web hosting experience so they can concentrate on what is most important – growing their businesses.

Use our Platform to Benefit:

– No cost domain name
– One-click WordPress
– One-click staging
– LiteSpeed Cache
– Access to SFTP Users
– Redis & Memcached
– Google Cloud DNS
– Daily Backups
– Google Speed
– Transactional emails
– Google’s QUIC and the HTTP
– Free Shell Access
– 30 Days Refund Back

Starting at $1.2/mo for the first order. Save 80% the regular price was $5/month.

ORDER NOW: https://www.hostpoco.com/best-wordpress-hosting.php

Happy Customers: https://hostadvice.com/hosting-company/h…o-reviews/

Thank you.

MariaDB 5.5 on Zabbix

it is a pleasure for me joining your community. I read a lot of posts trying to figure how to solve some problems. I’m facing with some performance issues about MariaDB on zabbix.

First of all, the hardware is based on NetApp HCI full SSD. The VM got 80GB 12core of virtual resources. The Database is about 500GB and actually it is parametrized as follow:

MariaDB on Oracle enterprise Linux 7

[mariadb-5.5]

max_connections = 110

slow_query_log=1

innodb_buffer_pool_size=32G

innodb_flush_method=O_DIRECT

innodb_file_per_table = ON

innodb_log_file_size = 1G

innodb_buffer_pool_instances = 32

innodb_stats_on_metadata = OFF

thread_cache_size = 512

query_cache_size = 0

query_cache_type = 0

join_buffer_size = 512M

max_allowed_packet = 16M

tmp_table_size = 32M

max_heap_table_size = 32M

innodb_io_capacity=2000

open_files_limit=65535

table_open_cache=10240

Zabbix is under slow performances with the "Configuration syncer" and "History syncer" services

i get a lot of slow queries like:

Time: 210730 18:01:28 User@Host: zabbixfe[zabbixfe] @ app-p-zabbix-fe02 [1.1.1.2] Thread_id: 1225328 Schema: zabbix QC_hit: No Query_time: 187.665202 Lock_time: 0.000123 Rows_sent: 80 Rows_examined: 99314556 SET timestamp=1627660888; SELECT g.groupid,g.name FROM hstgrp g WHERE EXISTS (SELECT NULL FROM rights r WHERE g.groupid=r.id AND r.groupid IN (13,15) GROUP BY r.id HAVING MIN(r.permission)>0 AND MAX(r.permission)>=’2′) AND EXISTS (SELECT NULL FROM hosts h,items i,graphs_items gi,graphs gr,hosts_groups hg WHERE hg.hostid=h.hostid AND h.status IN (0,1) AND hg.hostid=i.hostid AND i.itemid=gi.itemid AND gi.graphid=gr.graphid AND gr.flags IN (0,4) AND g.groupid=hg.groupid) AND EXISTS (SELECT NULL FROM hosts h,hosts_groups hg WHERE hg.hostid=h.hostid AND h.status IN (0,1) AND g.groupid=hg.groupid);

Time: 210730 18:02:24 User@Host: zabbixfe[zabbixfe] @ app-p-zabbix-fe02 [1.1.1.2] Thread_id: 1225960 Schema: zabbix QC_hit: No Query_time: 162.196613 Lock_time: 0.000100 Rows_sent: 83 Rows_examined: 107770132 SET timestamp=1627660944; SELECT g.groupid,g.name FROM hstgrp g WHERE EXISTS (SELECT NULL FROM hosts h,items i,graphs_items gi,graphs gr,hosts_groups hg WHERE hg.hostid=h.hostid AND h.status IN (0,1) AND hg.hostid=i.hostid AND i.itemid=gi.itemid AND gi.graphid=gr.graphid AND gr.flags IN (0,4) AND g.groupid=hg.groupid) AND EXISTS (SELECT NULL FROM hosts h,hosts_groups hg WHERE hg.hostid=h.hostid AND h.status IN (0,1) AND g.groupid=hg.groupid); /usr/libexec/mysqld, Version: 5.5.65-MariaDB (MariaDB Server). started with: Tcp port: 0 Unix socket: /var/lib/mysql/mysql.sock Time Id Command Argument

Time: 210730 18:14:10 User@Host: zabbixfe[zabbixfe] @ app-p-zabbix-fe02 [1.1.1.2] Thread_id: 18 Schema: zabbix QC_hit: No Query_time: 105.371170 Lock_time: 0.000070 Rows_sent: 20 Rows_examined: 542379 use zabbix; SET timestamp=1627661650; SELECT DISTINCT e.eventid,e.clock,e.ns,e.objectid,e.acknowledged,er1.r_eventid FROM events e LEFT JOIN event_recovery er1 ON er1.eventid=e.eventid WHERE e.source=’0′ AND e.object=’0′ AND e.objectid=90135 AND e.eventid<=’139663038′ AND e.value=1 ORDER BY e.eventid DESC LIMIT 20;

MysqlTuner says:

(it runs in < 1sec)

MySQLTuner 1.7.17 – Major Hayden major@mhtx.net Bug reports, feature requests, and downloads at http://mysqltuner.com/ Run with ‘–help’ for additional options and output filtering

[–] Skipped version check for MySQLTuner script Please enter your MySQL administrative login: root Please enter your MySQL administrative password: [!!] Your MySQL version 5.5.65-MariaDB is EOL software! Upgrade soon! [OK] Operating on 64-bit architecture

——– Storage Engine Statistics —————————————————————– [–] Status: +ARCHIVE +Aria +BLACKHOLE +CSV +FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA [–] Data in InnoDB tables: 463.0G (Tables: 149) [OK] Total fragmented tables: 0 [!!] failed to execute: SHOW TABLE STATUS FROM `#mysql50#lost+found` [!!] FAIL Execute SQL / return code: 256

——– Analysis Performance Metrics ————————————————————– [–] innodb_stats_on_metadata: OFF [OK] No stat updates during querying INFORMATION_SCHEMA.

——– Security Recommendations —————————————————————— [OK] There are no anonymous accounts for any database users [OK] All database users have passwords assigned [!!] There is no basic password file list!

——– CVE Security Recommendations ————————————————————– [–] Skipped due to –cvefile option undefined

——– Performance Metrics ———————————————————————– [–] Up for: 3d 20h 28m 20s (597M q [1K qps], 1M conn, TX: 1650G, RX: 130G) [–] Reads / Writes: 84% / 16% [–] Binary logging is disabled [–] Physical Memory : 78.4G [–] Max MySQL memory : 87.6G [–] Other process memory: 0B [–] Total buffers: 32.3G global + 514.7M per thread (110 max threads) [–] P_S Max memory usage: 0B [–] Galera GCache Max memory usage: 0B [!!] Maximum reached memory usage: 78.5G (100.16% of installed RAM) [!!] Maximum possible memory usage: 87.6G (111.70% of installed RAM) [!!] Overall possible memory usage with other process exceeded memory [OK] Slow queries: 0% (5K/597M) [OK] Highest usage of available connections: 83% (92/110) [OK] Aborted connections: 0.00% (5/1097879) [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance [OK] Query cache is disabled by default due to mutex contention on multiprocessor machines. [OK] Sorts requiring temporary tables: 0% (15K temp sorts / 192M sorts) [!!] Joins performed without indexes: 15222 [OK] Temporary tables created on disk: 6% (1M on disk / 24M total) [OK] Thread cache hit rate: 99% (92 created / 1M connections) [OK] Table cache hit rate: 104% (632 open / 606 opened) [OK] Open file limit used: 0% (54/65K) [OK] Table locks acquired immediately: 100% (757M immediate / 757M locks)

——– Performance schema ———————————————————————— [–] Performance schema is disabled.

[–] Memory used by P_S: 0B

[–] Sys schema isn’t installed.

——– ThreadPool Metrics ———————————————————————— [–] ThreadPool stat is enabled.

[–] Thread Pool Size: 8 thread(s).

[–] Using default value is good enough for your version (5.5.65-MariaDB)

——– MyISAM Metrics —————————————————————————- [!!] Key buffer used: 18.2% (24M used / 134M cache)

[OK] Key buffer size / total MyISAM indexes: 128.0M/99.0K

[!!] Read Key buffer hit rate: 80.0% (5 cached / 1 reads)

——– InnoDB Metrics —————————————————————————- [–] InnoDB is enabled.

[–] InnoDB Thread Concurrency: 0

[OK] InnoDB File per table is activated

[!!] InnoDB buffer pool / data size: 32.0G/463.0G

[!!] Ratio InnoDB log file size / InnoDB Buffer pool size (6.25 %): 1.0G * 2/32.0G should be equal to 25%

[OK] InnoDB buffer pool instances: 32

[–] InnoDB Buffer Pool Chunk Size not used or defined in your version

[OK] InnoDB Read buffer efficiency: 99.97% (272868942400 hits/ 272941485284 total)

[OK] InnoDB Write log efficiency: 96.86% (835415575 hits/ 862541514 total)

[OK] InnoDB log waits: 0.00% (0 waits / 27125939 writes)

——– AriaDB Metrics —————————————————————————-

[–] AriaDB is enabled.

[OK] Aria pagecache size / total Aria indexes: 128.0M/1B

[OK] Aria pagecache hit rate: 99.9% (13B cached / 7M reads)

###Thank you in advance OC

How can I speed up this mysql (mariadb) Query?

I’m averaging about 1000 queries per minute with the below query. Most of the query will stay the same with variations on the date,hour,minute and itemName (2021-06-02, 10, 30 and "football" in this example ). I’ve switched around various parts and this seems to be the best order for performance. I suspect a query utilizing different functions may be more appropriate for performance but I’ve yet to figure one out.

SELECT DatetimeRecorded, itemName, field1, field2, field3 FROM StoreData.data  WHERE DatetimeRecorded  BETWEEN '2021-06-02' - INTERVAL 30 DAY AND '2021-06-02' - INTERVAL 1 DAY   AND itemName = 'football' and  HOUR(DatetimeRecorded) = 10 and  MINUTE(DatetimeRecorded)  <= 30                                        

The frequency of "football" in the data base will only occur once per day with the example time constraints, meaning this and other similar queries would return a max of 30 rows being 1 per day.

In a more human readable format what I’m hoping to do more efficiently is "select 30 days before 2021-06-02 where the time is between 10:00 and 10:30 and the item is football"

additional info

  • queries are being run on mariadb Ver 15.1 Distrib 10.3.29-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
  • the database is about a half million entries
  • there are about 5000 unique itemNames

Here is the output show create table

 | Data | CREATE TABLE `data` (  `DatetimeRecorded` datetime DEFAULT NULL,   `field1` varchar(255) DEFAULT NULL,   `field2` varchar(255) DEFAULT NULL,   `field3` varchar(9) DEFAULT NULL,   `itemName` varchar(255) NOT NULL,   `field4` varchar(255) DEFAULT NULL,   `field5` double DEFAULT NULL,   `field6` int(11) DEFAULT NULL,   `field7` varchar(255) DEFAULT NULL,   `field8` double DEFAULT NULL,   `field9` int(11) DEFAULT NULL,   `field10` varchar(255) DEFAULT NULL,   `field11` double DEFAULT NULL,   `field12` int(11) DEFAULT NULL,   `field13` varchar(255) DEFAULT NULL,   `field14` double DEFAULT NULL,   `field15` double DEFAULT NULL,   `field16` double DEFAULT NULL,   `field17` double DEFAULT NULL,   `field18` double DEFAULT NULL,   `field19` int(11) NOT NULL,   `field20` mediumtext DEFAULT NULL,   `field21` mediumtext DEFAULT NULL,   `field22` double DEFAULT NULL,   `field23` varchar(255) DEFAULT NULL,   `field24` varchar(255) DEFAULT NULL,   `field25` varchar(255) DEFAULT NULL,   `field26` varchar(255) DEFAULT NULL,   `field27` double DEFAULT NULL,   `field28` int(11) DEFAULT NULL,   `field29` double DEFAULT NULL,   `field30` double DEFAULT NULL,   `field31` double DEFAULT NULL,   `field32` double DEFAULT NULL,   `field33` double DEFAULT NULL,   `field34` datetime DEFAULT NULL,   `field35` varchar(255) DEFAULT NULL,   `field36` double DEFAULT NULL,   `field37` int(11) DEFAULT NULL,   `field38` double DEFAULT NULL    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 | 

Apologies if I have left out any important details, I’m very new to sql and would appreciate any guidance/suggestions

MariaDb 10.4 not starting in a freebsd jail after update

ran a pkg update and mariadb seems to be broken. Cant find out what the reason might be after 2h our googling and digging. Help to figure out would be highly appreciated. Thanks in advance. The hostname.err shows no additional entries after DB start (the try to start)

FreeBSD nextcloud 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 df578562304(HEAD) TRUENAS amd64

mariadb104-client-10.4.19 Multithreaded SQL database (client) mariadb104-server-10.4.19 Multithreaded SQL database (server)

root@nextcloud:~ # service mysql-server start Starting mysql. root@nextcloud:~ # service mysql-server status mysql is not running. root@nextcloud:~ #  root@nextcloud:/tmp # cat /etc/rc.conf cron_flags="$  cron_flags -J 15"  # Disable Sendmail by default sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO"  # Run secure syslog syslogd_flags="-c -ss"  # Enable IPv6 ipv6_activate_all_interfaces="YES" apache24_enable="yes" mysql_enable="yes" redis_enable="yes" php_fpm_enable="yes" 

Server Startup sh -x /usr/local/etc/rc.d/mysql-server start https://pastebin.com/UdEC8Th6

root@nextcloud:~ # cat /usr/local/etc/mysql/my.cnf # # This group is read both by the client and the server # use it for options that affect everything, see # https://mariadb.com/kb/en/configuring-mariadb-with-option-files/#option-groups # [client-server] port    = 3306 socket  = /tmp/mysql.sock #socket  = /var/run/mysql/mysql.sock # # include *.cnf from the config directory # !includedir /usr/local/etc/mysql/conf.d/ 

MariaDB: Create dynamic PrepareStatement inside a Procedure

I am trying to make a stored procedure which returns me the records of a table that match filters that can be applied in layers.

The procedure receives certain variables as parameters and I want to construct a PrepareStatement that adds the non-null variables as filters. I am using MariaDB 10.6.2

The table I am working on (removing the foreign keys) looks like:

CREATE OR REPLACE TABLE Thesis_Detail(     thesis_id INT UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT,     title VARCHAR(255) NOT NULL,     year SMALLINT NOT NULL,     file VARCHAR(255) NOT NULL UNIQUE,     abstract TEXT NOT NULL,     uploaded_datetime DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,     INDEX(year),     FULLTEXT(title) ) DEFAULT CHARACTER SET utf8mb4; 

The goal itself is to create it this way

DELIMITER // CREATE OR REPLACE PROCEDURE UThesis.searchThesisByFilters(     IN year_in SMALLINT,     IN title_in VARCHAR(255),     IN limit_in TINYINT,     IN offset_in TINYINT ) BEGIN     DECLARE first BIT DEFAULT 0;      SET @sql = 'SELECT TD.title AS title,' ||                'TD.year AS year,' ||                'TD.file AS path,' ||                'TD.abstract AS abstract,' ||                'TD.thesis_id AS thesis_id ' ||                'FROM Thesis_Detail TD ';      IF NOT ISNULL(title_in) THEN         SET first = 1;         SET @sql = @sql + ' WHERE MATCH(title) AGAINST(? IN NATURAL LANGUAGE MODE)';     END IF;      IF NOT ISNULL(year_in) THEN         IF first THEN             SET @sql = @sql + ' WHERE';         ELSE             SET @sql = @sql + ' AND';         END IF;         SET @sql = @sql + ' TD.year = ?';     END IF;      SET @sql = @sql + ' LIMIT ?  OFFSET  ?';      PREPARE stmt FROM @sql;     EXECUTE stmt using title_in, year_in, limit_in, offset_in;     DEALLOCATE PREPARE stmt;  END //  DELIMITER ; 

The problem is that the following line would be dynamic, that is, it may or may not have the title_in or year_in

EXECUTE stmt using title_in, year_in, limit_in, offset_in; EXECUTE stmt using year_in, limit_in, offset_in; EXECUTE stmt using title_in, limit_in, offset_in; EXECUTE stmt using limit_in, offset_in; 

This example can be solved with combinations of whether one or two are null, but the problem is that I have to apply more filters. In total there are 5 filters but doing the case of each combination ends up being terrible. Any ideas how I can achieve this?

In the first link they make use of CONCAT, but I don’t know if that makes the procedure vulnerable to SQL injections.

CREATE OR REPLACE PROCEDURE UThesis.searchThesisByFilters(     IN year_in SMALLINT,     IN title_in VARCHAR(255),     IN limit_in TINYINT,     IN offset_in TINYINT ) BEGIN     DECLARE first BIT DEFAULT 0;      SET @sql = 'SELECT TD.title AS title,' ||                'TD.year AS year,' ||                'TD.file AS path,' ||                'TD.abstract AS abstract,' ||                'TD.thesis_id AS thesis_id ' ||                'FROM Thesis_Detail TD ';      IF NOT ISNULL(title_in) THEN         SET first = 1;         SET @sql = @sql + ' WHERE MATCH(title) AGAINST(? IN NATURAL LANGUAGE MODE)';     END IF;      IF NOT ISNULL(title_in) THEN         IF first THEN             SET @sql = @sql + ' WHERE';         ELSE             SET @sql = @sql + ' AND';         END IF;         SET @sql = @sql + CONCAT(' TD.year = ', year_in);     END IF;      SET @sql = @sql + CONCAT(' LIMIT', limit_in, ' OFFSET ', offset_in);      PREPARE stmt FROM @sql;     EXECUTE stmt;     DEALLOCATE PREPARE stmt;  END // 

Setup amazon aurora as replica to mariadb master

I am trying to setup replication between MariaDB 10.4.17 and Aurora 5.7.12 MySQL, with Mariadb as master and aurora as replica. I am following this aws article

I noted the file name and position

+---------------+----------+--------------+------------------+ | File          | Position | Binlog_Do_DB | Binlog_Ignore_DB | +---------------+----------+--------------+------------------+ | binlog.000169 |  1387829 |              |                  | +---------------+----------+--------------+------------------+ 

I created mysql dump from mariadb and loaded that into aurora. after which I created a replication user on the master instance like this

CREATE USER 'replication_aurora'@'%' IDENTIFIED BY 'repl_pass';

GRANT REPLICATION CLIENT, REPLICATION SLAVE ON *.* TO 'replication_aurora'@'%';

and called the procedure on Aurora

CALL mysql.rds_set_external_master ('ip of master', 3306,     'replication_aurora', '<password>', 'binlog.000169', 1387829, 0); 

more about the above procedure here then i called this procedure

CALL mysql.rds_start_replication; 

This was supposed to start replication but I am getting this when i run SHOW SLAVE STATUS \G;

*************************** 1. row ***************************                Slave_IO_State:                   Master_Host: master_ip                   Master_User: replication_aurora                   Master_Port: 3306                 Connect_Retry: 60               Master_Log_File: binlog.000169           Read_Master_Log_Pos: 1387829                Relay_Log_File: relaylog.000001                 Relay_Log_Pos: 4         Relay_Master_Log_File: binlog.000169              Slave_IO_Running: No             Slave_SQL_Running: Yes               Replicate_Do_DB:           Replicate_Ignore_DB:            Replicate_Do_Table:        Replicate_Ignore_Table: mysql.rds_replication_status,mysql.rds_monitor,mysql.rds_sysinfo,mysql.rds_configuration,mysql.rds_history       Replicate_Wild_Do_Table:   Replicate_Wild_Ignore_Table:                    Last_Errno: 0                    Last_Error:                  Skip_Counter: 0           Exec_Master_Log_Pos: 1387829               Relay_Log_Space: 2754               Until_Condition: None                Until_Log_File:                 Until_Log_Pos: 0            Master_SSL_Allowed: No            Master_SSL_CA_File:            Master_SSL_CA_Path:               Master_SSL_Cert:             Master_SSL_Cipher:                Master_SSL_Key:         Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No                 Last_IO_Errno: 1593                 Last_IO_Error: Fatal error: The slave I/O thread stops because a fatal error is encountered when it tries to get the value of SERVER_UUID variable from master.                Last_SQL_Errno: 0                Last_SQL_Error:   Replicate_Ignore_Server_Ids:              Master_Server_Id: 1                   Master_UUID:              Master_Info_File: mysql.slave_master_info                     SQL_Delay: 0           SQL_Remaining_Delay: NULL       Slave_SQL_Running_State: Slave has read all relay log; waiting for more updates            Master_Retry_Count: 86400                   Master_Bind:       Last_IO_Error_Timestamp: 210424 15:42:38      Last_SQL_Error_Timestamp:                Master_SSL_Crl:            Master_SSL_Crlpath:            Retrieved_Gtid_Set:             Executed_Gtid_Set:                 Auto_Position: 0          Replicate_Rewrite_DB:                  Channel_Name:            Master_TLS_Version: 

I am thinking error could be while creating the user I created 'replication_aurora'@'%' instead of creating 'replication_aurora'@'replica ip' is this the issue?

I am unable to check because the connection endpoint aurora gives is more than 60characters long so i cannot create a user with that endpoint on my mariadb master.

Question.

  1. is not giving replica ip in user is the issue?
  2. is compatibility the issue?
  3. should i also create the same user on replica?

I am sort of at a dead end here please help any article or video would be helpful

how to change “localhost” in MariaDB

I wonder if there is any way to change ‘localhost’ in MariaDB. for example, when you create a user in database, it shows ‘user’@’localhost’ I would like to know how to change ‘localhost’ to any other name. for example, I will be able to create a user in database like the following: ‘user’@’mydomain.com’ by the way, I’m very new in MariaDB and SQL server stuff. thank you in advance!