If my master is down, can the slave be write?
If the answer is written, what will happen if the master returns?
Can someone help me, how to setup active active MySQL database on Google cloud platform?
А чего тогда сюда пишешь?
How to resolve this?
pstack hardly can tell anything to a usual mortal user, not a MySQL developer.
. It will cause mysqld crash or hung. It is last way to find the problem. Pstack can be unsafe for production due missed signals & interrupts if you get unlucky.
Crash is not a very bad thing for an ACID database, you know.
But definitely not for production, yes.
Read Kodd’s book
Or read Garsia-Molino, Ulman, Widom.
thanks @huiuneed for heads-up.

This is the error message I got when I ran the code from the database I got from postgres
show us the columns
No way, actually.
You can script the database on PG and try to load the script into mySQL, but the SQL dialects are different and this is NOT an AUTOMATIC process, you shall have to correct a lot of things.
No, useless
You can script the database on PG and try to load the script into mySQL, but the SQL dialects are different and this is NOT an AUTOMATIC process, you shall have to correct a lot of things.
Correction like because have little experience
This task cannot be done if you don’t have much experience, it requires good experience both in PG and MySQL.
If the answer is written, what will happen if the master returns? Can new data entered on the slave be replicated to the up master?
https://dev.mysql.com/doc/refman/8.0/en/innodb-data-encryption.html
If the answer is written, what will happen if the master returns? Can new data entered on the slave be replicated to the up master?
this is a fail over situation. You could refer the MHA
Do step by step. All is very simple
don’t send pictures please, send text.
Okay, but it easy to ask question
but uneasy to read
Those SELECTs that have only variables as it target in the select list go to the procedure, those SELECTs that don’t have variables in the select list go to the client.
^
You must also specify, what you mean by this “to return … result set”.
Possible meanings are to return to the client application, or to return to another procedure.
McAfee audit plugin for MySQL
Thanks, I shall explore it
I’m using docker image percona:5.7
Have the next problem, I’m dumping db’s correctly:
#!/bin/bash
for db in mysql aff_profits_test
do
time
mydumper
–host=127.0.0.1
–user=root
–password=pass
–outputdir=/home/ec2-user/full/$db
–rows=10000
-G -E -R
–compress
–build-empty-files
–threads=1
–verbose=3
–compress-protocol
–database=$db
done
Dumping proccess was successful and without any errors
Then I tried to restore mysql and aff_profits_test db’s for example:
#!/bin/bash
for db in mysql aff_profits_test
do
time
myloader
–host=127.0.0.1
–user=root
–password=pass
–directory=/home/ec2-user/full/$db
–threads=1
–verbose=3
–queries-per-transaction=100
–compress-protocol
–overwrite-tables
–database=$db
done
During restoring, I’m getting some errors:
** Message: 16:30:03.145: Thread 1 restoring `mysql`.`columns_priv` part 0
** Message: 16:30:03.145: Thread 1 restoring `mysql`.`db` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`event` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`func` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`ndb_binlog_index` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`proc` part 0
** (myloader:22186): CRITICAL **: 16:30:03.151: Error restoring mysql.proc from file mysql.proc.sql.gz: Table ‘mysql.proc’ doesn’t exist
Creating table `mysql`.`plugin`
** Message: 16:30:02.994: Dropping table or view (if exists) `mysql`.`proc`
** Message: 16:30:02.995: Creating table `mysql`.`proc`
** (myloader:22186): CRITICAL **: 16:30:02.996: Error restoring mysql.proc from file mysql.proc-schema.sql.gz: Invalid default value for ‘modified’
When restoring my own db, get the next errors:
Error restoring aff_profits_test.default_rate_shave_history from file aff_profits_test.default_rate_shave_history.sql.gz: Duplicate entry ‘1’ for key ‘PRIMARY’
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_countries` part 0
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_rate_tables` part 0
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_rates` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`department_site_alias` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`department_sites` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`details` part 0
* (myloader:3844): CRITICAL *: 12:50:08.426: Error restoring aff_profits_test.details from file aff_profits_test.details.sql.gz: Duplicate entry ’59eef12677075′ for key ‘PRIMARY’
** Message: 12:50:08.426: Thread 1 restoring `aff_profits_test`.`emails` part 0
* (myloader:3844): CRITICAL *: 12:50:08.447: Error restoring aff_profits_test.emails from file aff_profits_test.emails.sql.gz: Duplicate entry ‘1’ for key ‘PRIMARY’
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`emails_parts` part 0
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`errors` part 0
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`faq_items` part 0
Help, please, to understand what is going on:( I’m using docker image percona:5.7 Have the next problem, I’m dumping db’s correctly: #!/bin/bash for db in mysql aff_profits_…
I’m using docker image percona:5.7
Have the next problem, I’m dumping db’s correctly:
#!/bin/bash
for db in mysql aff_profits_test
do
time
mydumper
–host=127.0.0.1
–user=root
–password=pass
–outputdir=/home/ec2-user/full/$db
–rows=10000
-G -E -R
–compress
–build-empty-files
–threads=1
–verbose=3
–compress-protocol
–database=$db
done
Dumping proccess was successful and without any errors
Then I tried to restore mysql and aff_profits_test db’s for example:
#!/bin/bash
for db in mysql aff_profits_test
do
time
myloader
–host=127.0.0.1
–user=root
–password=pass
–directory=/home/ec2-user/full/$db
–threads=1
–verbose=3
–queries-per-transaction=100
–compress-protocol
–overwrite-tables
–database=$db
done
During restoring, I’m getting some errors:
** Message: 16:30:03.145: Thread 1 restoring `mysql`.`columns_priv` part 0
** Message: 16:30:03.145: Thread 1 restoring `mysql`.`db` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`event` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`func` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`ndb_binlog_index` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`proc` part 0
** (myloader:22186): CRITICAL **: 16:30:03.151: Error restoring mysql.proc from file mysql.proc.sql.gz: Table ‘mysql.proc’ doesn’t exist
Creating table `mysql`.`plugin`
** Message: 16:30:02.994: Dropping table or view (if exists) `mysql`.`proc`
** Message: 16:30:02.995: Creating table `mysql`.`proc`
** (myloader:22186): CRITICAL **: 16:30:02.996: Error restoring mysql.proc from file mysql.proc-schema.sql.gz: Invalid default value for ‘modified’
When restoring my own db, get the next errors:
Error restoring aff_profits_test.default_rate_shave_history from file aff_profits_test.default_rate_shave_history.sql.gz: Duplicate entry ‘1’ for key ‘PRIMARY’
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_countries` part 0
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_rate_tables` part 0
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_rates` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`department_site_alias` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`department_sites` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`details` part 0
* (myloader:3844): CRITICAL *: 12:50:08.426: Error restoring aff_profits_test.details from file aff_profits_test.details.sql.gz: Duplicate entry ’59eef12677075′ for key ‘PRIMARY’
** Message: 12:50:08.426: Thread 1 restoring `aff_profits_test`.`emails` part 0
* (myloader:3844): CRITICAL *: 12:50:08.447: Error restoring aff_profits_test.emails from file aff_profits_test.emails.sql.gz: Duplicate entry ‘1’ for key ‘PRIMARY’
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`emails_parts` part 0
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`errors` part 0
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`faq_items` part 0
These are duplicates, you must manually provide guarantee that there is no duplicate data in the destination database, that is, it must be empty.
I’m using docker image percona:5.7
Have the next problem, I’m dumping db’s correctly:
#!/bin/bash
for db in mysql aff_profits_test
do
time
mydumper
–host=127.0.0.1
–user=root
–password=pass
–outputdir=/home/ec2-user/full/$db
–rows=10000
-G -E -R
–compress
–build-empty-files
–threads=1
–verbose=3
–compress-protocol
–database=$db
done
Dumping proccess was successful and without any errors
Then I tried to restore mysql and aff_profits_test db’s for example:
#!/bin/bash
for db in mysql aff_profits_test
do
time
myloader
–host=127.0.0.1
–user=root
–password=pass
–directory=/home/ec2-user/full/$db
–threads=1
–verbose=3
–queries-per-transaction=100
–compress-protocol
–overwrite-tables
–database=$db
done
During restoring, I’m getting some errors:
** Message: 16:30:03.145: Thread 1 restoring `mysql`.`columns_priv` part 0
** Message: 16:30:03.145: Thread 1 restoring `mysql`.`db` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`event` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`func` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`ndb_binlog_index` part 0
** Message: 16:30:03.146: Thread 1 restoring `mysql`.`proc` part 0
** (myloader:22186): CRITICAL **: 16:30:03.151: Error restoring mysql.proc from file mysql.proc.sql.gz: Table ‘mysql.proc’ doesn’t exist
Creating table `mysql`.`plugin`
** Message: 16:30:02.994: Dropping table or view (if exists) `mysql`.`proc`
** Message: 16:30:02.995: Creating table `mysql`.`proc`
** (myloader:22186): CRITICAL **: 16:30:02.996: Error restoring mysql.proc from file mysql.proc-schema.sql.gz: Invalid default value for ‘modified’
When restoring my own db, get the next errors:
Error restoring aff_profits_test.default_rate_shave_history from file aff_profits_test.default_rate_shave_history.sql.gz: Duplicate entry ‘1’ for key ‘PRIMARY’
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_countries` part 0
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_rate_tables` part 0
** Message: 12:50:08.363: Thread 1 restoring `aff_profits_test`.`department_rates` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`department_site_alias` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`department_sites` part 0
** Message: 12:50:08.364: Thread 1 restoring `aff_profits_test`.`details` part 0
* (myloader:3844): CRITICAL *: 12:50:08.426: Error restoring aff_profits_test.details from file aff_profits_test.details.sql.gz: Duplicate entry ’59eef12677075′ for key ‘PRIMARY’
** Message: 12:50:08.426: Thread 1 restoring `aff_profits_test`.`emails` part 0
* (myloader:3844): CRITICAL *: 12:50:08.447: Error restoring aff_profits_test.emails from file aff_profits_test.emails.sql.gz: Duplicate entry ‘1’ for key ‘PRIMARY’
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`emails_parts` part 0
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`errors` part 0
** Message: 12:50:08.447: Thread 1 restoring `aff_profits_test`.`faq_items` part 0
You put too much info, try to filter info somehow next time, please