MariaDB [test]> select @@version,@@read_only,@@wsrep_on;
|
+-----------------+-------------+------------+
|
| @@version | @@read_only | @@wsrep_on |
|
+-----------------+-------------+------------+
|
| 10.4.23-MariaDB | 1 | 1 |
|
+-----------------+-------------+------------+
|
1 row in set (0.000 sec)
|
|
MariaDB [test]> create table t1(id int);
|
ERROR 1290 (HY000): The MariaDB server is running with the --read-only option so it cannot execute this statement
|
MariaDB [test]> select user();
|
+--------------------+
|
| user() |
|
+--------------------+
|
| testuser@localhost |
|
+--------------------+
|
1 row in set (0.006 sec)
|
|
MariaDB [test]> show grants;
|
+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
| Grants for testuser@% |
|
+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER ON *.* TO `testuser`@`%` IDENTIFIED BY PASSWORD '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29' |
|
+-------------------------------------------------------------------------------------------------------------------------------------------------+
|
1 row in set (0.003 sec)
|
|
MariaDB [test]>
|
|
sysbench /usr/share/sysbench/oltp_insert.lua --mysql-storage-engine=innodb --table-size=10000 --tables=10 --threads=10 --mysql-db=test --mysql-user=testuser --mysql-password=test --db-driver=mysql --mysql-socket=/test/GAL_MD130122-mariadb-10.4.23-linux-x86_64-opt/node1/node1_socket.sock prepare | grep read-only
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest8(
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest1(
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest9(
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest2(
|
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:197: SQL error, errno = 1290, state = 'HY000': The MariaDB server is running with the --read-only option so it cannot execute this statement
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest5(
|
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:197: SQL error, errno = 1290, state = 'HY000': The MariaDB server is running with the --read-only option so it cannot execute this statement
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest7(
|
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:197: SQL error, errno = 1290, state = 'HY000': The MariaDB server is running with the --read-only option so it cannot execute this statement
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest6(
|
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:197: SQL error, errno = 1290, state = 'HY000': The MariaDB server is running with the --read-only option so it cannot execute this statement
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest4(
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest3(
|
FATAL: mysql_drv_query() returned error 1290 (The MariaDB server is running with the --read-only option so it cannot execute this statement) for query 'CREATE TABLE sbtest10(
|
FATAL: `sysbench.cmdline.call_command' function failed: /usr/share/sysbench/oltp_common.lua:197: SQL error, errno = 1290, state = 'HY000': The MariaDB server is running with the --read-only option so it cannot execute this statement
|
|