mysql – ERROR 1794 (HY000): The slave is not configured or could not be properly initialized

This is my my.cnf file

[mysqld]

server_id = 1
log_bin = /var/log/mysql/mysql-bin.log
log_bin_index = /var/log/mysql/mysql-bin.log.index
relay_log = / var / log / mysql / mysql-relay-bin
relay_log_index = /var/log/mysql/mysql-relay-bin.index
expire_logs_days = 10
max_binlog_size = 100M
log_slave_updates = 1
Auto-increment increment = 2
Auto increment offset = 1
Binding address = 0.0.0.0

I clearly mentioned the server-d in my.cnf, but I get this error when I stop the slave.

Stop slave;
ERROR 1794 (HY000): Slave is not configured or could not be initialized properly. You must set at least –server-id to enable either a master or a slave. Additional error messages can be found in the MySQL error log.

Anyone can help me as soon as possible.

Java – How are settings structured if they can be configured in different ways?

Adopt the following about this question:

  • I have full control over this project
  • I am writing a media player

Of course, a user with a media player can adjust the volume, so I could have a class that looks like this:

public class audio {

private int level;
// Constructor and other attributes are missing

public int getCurrentVolume ()
public cancellation (int amount)
public void turnDown (int amount)
}

With my media player you can also take screenshots of the current video. So I could have a class that looks like this:

public class video {

private string screenshotsDirectory;
// Constructor and other attributes are missing

public String getCurrentScreenshotDirectory ()
public updateScreenshotDirectory (String newScrenshotPath)
}

Problem:

At some point write and read the data from a file. The problem is that you need to create a stream for each type.

FileWriter volumeWriter = new FileWriter ("settings.txt");
volumeWriter.writer (audioObj.getCurrentVolume ());

FileWriter videoWriter = new VideoWriter ("settings.txt")
videoWriter.writer (videoObj.getCurrentScreenshotDirectory ());

It would be nice to insist File Writer object is an abstract type, which means that I could create an abstract class or interface the settingsbut as far as I can see, the settings have no common behavior. For sure, The settings may change, but in different waysFor example, the path to the screenshot is on string while volume is on int,

Question:

What is the clean way to structure classes that have the same type (configuration / user settings) but can change and behave in different ways?

I can increase the volume and change the screenshot path, but I can not Expand the screen path or update the volume with a string (representing the path).

Files – temporary: // fileh4Oxvi could not be copied because the target directory is not configured correctly

I'm using Advagg and Amazons3 modules, which causes this error:

temporary: // fileh4Oxvi could not be copied because the target directory is not configured correctly.

Files are created in the tmp folder, but they have not been copied to the s3 bucket.

I had specified the "tmp" folder 755 and even 777, which does not work.
And I even tried to configure the temporary directory, which does not work either.

All entries are highly appreciated.

magento2 – Price as configured Displays on the bundle product as 0.00

I revise the product view in version 2.2.4 of magento.
Here on this page the configured price shows $ 0.00.
This price will be displayed as soon as I select the button to customize and add to shopping cart

I tried to insert the following code catalog_product_view.xml

  
                
                    product.price.render.default
                    konfigurierter_Preis
                    item_view
                
            

spring boot service will not be registered if multiple Eureka hosts are configured as separated by commas

I have created two Eureka servers as primary and secondary servers. I have configured my service URL in the micro-services bootstrap.yml as shown below.

Spring:
Application:
Name: Ilpproxy
# Discovery server access
Eureka:
Client:
ServiceUrl:
defaultZone: http://10.83.134.39:8761/eureka/,http://10.83.143.221:8761/eureka/
Cloud:
config:
uri: $ {vcap.services. $ {PREFIX:} configserver.credentials.uri: http: // user: password @ localhost: 8888}

My service is registered only in the primary Eureka and not in the secondary. If I have configured the primary Eureka as the first value, the service will be listed in both Eureka instances.

Below is the application.yml of Eureka

Server:
Harbor: 8761
Security:
Online:
Password: $ {eureka.password} # Do not use a default password in a real app

Info:
Component: Discovery Server

logging:
Level:
Root: WARN
com.pearson: WARN
com.netflix.hystrix: WARN
File: /data/logs/eureka.log

Eureka:
Client:
registerWithEureka: wrong
fetchRegistry: false
ServiceUrl:
defaultZone: http: // $ {eureka.instance.hostname}: $ {server.port} / eureka /
Server:
waitTimeInMsWhenSyncEmpty: 0
enableSelfPreservation: false
Password: $ {SECURITY_USER_PASSWORD: password}
Example:
Hostname: 127.0.0.1

---
Spring:
Profiles: Peer # not independent
Eureka:
Example:
Hostname: 127.0.0.1
Client:
registerWithEureka: true
fetchRegistry: true
ServiceUrl:
defaultZone: http: // user: $ {eureka.password} @ 127.0.0.1: 8761 / eureka /

---
Spring:
Profiles: other # not independent
Server:
Harbor: 8762
Eureka:
Example:
Hostname: 127.0.0.1
nonSecurePort: $ {server.port}
Client:
ServiceUrl:
defaultZone: http: // user: $ {eureka.password} @ 127.0.1.1: 8761 / eureka /

---
Spring:
Profiles: Local # connection to remote peer
Eureka:
Example:
Hostname: $ {localhost.hostname: $ {localhost.ngrok} .ngrok.com}
Client:
registerWithEureka: true
fetchRegistry: true
ServiceUrl:
defaultZone: http: // user: $ {eureka.password} @ $ {PREFIX:} eureka.cfapps.io/eureka/

---
Spring:
profiles: zone_d # connects to a remote peer
Server:
Harbor: 8761
Eureka:
Client:
registerWithEureka: true
fetchRegistry: true
ServiceUrl:
defaultZone: http://10.83.143.221:8761/eureka/,http://10.83.134.39:8761/eureka/
Server:
waitTimeInMsWhenSyncEmpty: 0
Password: $ {SECURITY_USER_PASSWORD: password}

logging:
Level:
Root: WARN
com.pearson: WARN
com.netflix.hystrix: WARN
File: /data/logs/eureka.log

Please help to solve the problem.

amazon rds – Why is AWS RDS connections timing out even though it is configured to accept connections?

Hello, I have a PostgresSQL database on AWS RDS, which is located in VPC. His security groups accept Postgres connections on port 5432 from my EC2 web servers residing in the same VPC, and the aws-rds console always shows 0 connections.

Sometimes it shows 1 connection, and when I try to remove and add IP addresses in the security group, 0 connections are restored and will not change after that, no matter what changes I make in the security group. what am I doing wrong here?

Linux – AWS VM refuses to allow SFTP, even though it is configured correctly

I have a blocking issue where a new AWS instance does not allow a user to have the SFTP file there.

Even stranger (and I've never seen that in 30 years) is that when I use the root user, I change permissions on the directory to 777, they remain unchanged, No error message, nothing. They just stay at 755.

I use the standard ec2-user, I called a group sftponly that I added the user.

I've even created a subdirectory named "incoming" under the user's chrooted home. It rejects that, too chmod 777 Command. Again, not with a mistake, just a simple refusal to make changes.

What can I do to allow a user to easily upload a file to an SFTP server in AWS? How can I fix the error "Permission denied"?

ubuntu – Problems with the WordPress container configured for external host

I'm trying to run the WordPress container, which is configured to use an external MySQL database server:

Docking - Name WordPress1 -p 801: 80 -e WORDPRESS_DB_HOST = MYDBSERVERIPADDRESS: 3306 -e WORDPRESS_DB_USER = username -e WORDPRESS_DB_PASSWORD = password -e WORDPRESS_DB_NAME = database name -The WordPress

When I do this, however, I get this error:

MySQL connection error: (1045) Access for & # 39; username & # 39; @ & # 39; WRONGIPADDRESS & # 39; denied (with password: YES)

The problem is that the IP address of the container host is used (which I have called WRONGIPADDRESS), not the IP address I specified with the WORDPRESS_DB_HOST parameter. The parameter WORDPRESS_DB_HOST is always ignored.

Any idea why that would happen? This is probably a fully supported parameter for a very popular container (WordPress). Therefore, any help you can provide is greatly appreciated.