I want to setup replication in MySQL on Win10 machines. With the help from this forum I finally managed to start the mysql-service from the PowerShell. To configure the master I have to stop the mysql service. The MySQL-Reference shows this:
C:> "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqladmin" -u root shutdown
Having MySQL Server 5.7 and the default path my line in the Powershell is this:
PS C:> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqladmin" -u root shutdown
But I get “unexpected token -u” and “ unexpected token root”. (As soon as I type quotation mark after the angle bracket the bracket turns red…) – a path in quotes? What is wrong?
Next question I will run in is: Where are the below lines meant to go? In the PowerShell (still on Windows level) they cause errors. Are they accepted as soon as the mysql-service has been shut down?
[mysqld]
log-bin=mysql-bin
server-id=1
Would be great to get help again! Thanks