Here’s how to troubleshoot problems you might encounter using Oracle MySQL in your Google Workspace Migrate setup.
Network connection errors | Full disk | Password issues | Nodes offline
Network connection errors
Google Workspace support can’t help you with issues concerning your network setup.
Errors that mention MySQL on the node or platform service host logs, such as "Connect Timeout expired" errors, might indicate either a full MySQL disk or a network connection issue. The action you take depends on whether or not the errors occur intermittently.
Expand section | Collapse all & go to top
Errors occur intermittentlyThe errors could be related to a full MySQL disk:
- Ensure that you've followed the system requirements and that the MySQL server hardware is at least as described (specifically, enough RAM, CPU, and storage).
- For the MySQL server, ensure that:
- You installed MySQL using the installer provided by Google
- There is no other MySQL instance on the server
- There is no antivirus or antimalware software installed
- If you installed a firewall, you allowed ingress traffic on port 3306
For more information about freeing up space in a full disk, go to Troubleshoot full MySQL disk.
The errors could indicate a network issue:
- Make sure that:
- The MySQL server meets the system requirements.
For details, go to Hardware requirements.
- You installed the MySQL software using the installer provided by Google.
For details, go to Download the installers.
- You completed all the steps in Configure database settings.
- All servers in the Google Workspace Migrate cluster are on the same network with no firewalls or filters between them.
- No other software is installed on the Windows Server used by MySQL.
- You haven't modified the default Windows Firewall settings.
- The MySQL server meets the system requirements.
- Connect remotely to the server that can't reach the MySQL server, and open a PowerShell window as administrator.
- To install the Telnet Client, enter the following command:
Install-WindowsFeature -name Telnet-Client
- Reboot the MySQL server and the server that can't connect and try again. If you still have issues, continue to step 6.
- To run a telnet test, enter the following command:
telnet MySQL-server-ip-address 3306
- Assess the result of your telnet test. If you:
- Don’t get an error or if, after a few seconds, you get a Connection to host lost message, there's probably no network issue. Try reproducing the error again by opening the Google Workspace Migrate platform and repeating the action that previously failed.
- Can connect using telnet but you can’t connect using Google Workspace Migrate (from the same node or the platform), a local firewall might be blocking outgoing connections. Check the firewall settings on the local server.
- Get an error, such as Could not open connection to the host, on port 3306: Connect failed, follow the steps in the next table to troubleshoot.
Enter telnet MySQL-server-ip-address 3306 on … | Outcome & steps to resolve |
---|---|
Another node server or the platform server |
If the command is successful on another server, it is unlikely that the issue is with the MySQL server. Check the network setup of the server where you ran the failed telnet command. |
Multiple servers |
If you get an error, the issue is either network-wide or with the MySQL server. Try the following steps:
|
MySQL server |
If you get an error, there's an issue with the MySQL server.
|
Troubleshoot full MySQL disk
If you have a full disk, you might get these signs:
- A bridge or partition appears stalled.
- A bridge completes but no items are detected.
- An A RelationalDataLocation or (Errcode: 28 - No space left on device) message is in the HAR file.
- The following errors or similar are in the platform service host logs:
- The table 'bridgeexecutionpartitionmappings' is full.
- The table 'appbridgeidentity' is full.
To find the service host logs, go to Check the service host logs.
If the disk is full, try these fixes to free up space:
- Delete any bridges or projects that you no longer need.
- Use Google Compute Engine to increase space; go to Add a persistent disk to your VM.
- Move the MySQL data files to a larger disk; consult your MySQL documentation.
- Delete binary log files; go to Purge binary logs.
Password issues
Expand section | Collapse all & go to top
Fix expired MySQL passwordYou might see a blank screen when you sign in to the platform and this error in the service host logs:
[MySqlException; HRESULT -2147467259] : Your password has expired. To log in you must change it using a client that supports expired passwords.
This error occurs because MySQL passwords expire by default after approximately a year. To fix the issue:
- If you don't have the MySQL root password, complete Reset MySQL root password (on this page) first.
- Sign in to the MySQL machine and open a command prompt.
- To connect to MySQL, enter the following command:
C:\MySQL\bin\mysql.exe -h 127.0.0.1 -u root -pRootPassword
Substitute the MySQL root password in place of RootPassword. There is no space between -p and the password.
- To set the password to never expire, enter the following command:
ALTER USER USER() IDENTIFIED BY 'RootPassword';
ALTER USER 'root'@'127.0.0.1' PASSWORD EXPIRE NEVER;
ALTER USER 'migrate'@'%' PASSWORD EXPIRE NEVER;
FLUSH PRIVILEGES; - On the platform server, restart the Google Workspace Migrate service and connect normally.
Google Workspace Migrate uses the migrate password to communicate with MySQL. Follow the steps below if you need to reset this password.
Step 1: Reset password
- If you don’t have the MySQL root password, complete Reset MySQL root password (later on this page) first.
- Sign in to the MySQL machine, and open a command prompt.
- To connect to MySQL, enter the following command:
C:\MySQL\bin\mysql.exe -h 127.0.0.1 -u root -pRootPassword
Substitute the MySQL root password in place of RootPassword. There is no space between -p and the password.
- To update the password for the migrate user, enter the following command:
ALTER USER 'migrate'@'%' IDENTIFIED BY 'NewUserPassword'; FLUSH PRIVILEGES;
Substitute the new migrate user password in place of NewUserPassword.
Step 2: Update the platform
Choose an option:
I can access the Google Workspace Migrate platform:
- In the Google Workspace Migrate platform, at the top, click Settings Database settings.
- Enter the new password for MySQL and the Apache CouchDB software.
Both passwords are required. If you don’t have the CouchDB password, go to I can’t access the Google Workspace Migrate platform (below).
- Click Continue.
I can’t access the Google Workspace Migrate platform:
- Sign in to the machine that's running the platform.
- On the taskbar, right-click Google Workspace Migrate and select Edit host settings.
- For MySQL settings, click Password and enter the new password.
- Click Save & CloseOK.
- On the taskbar, right-click Google Workspace Migrate and select Stop Google Workspace Migrate service. Then, restart the service.
Step 3: Reassociate the nodes
You need to complete this step to propagate the new database settings to the nodes.
- In the Google Workspace Migrate platform, at the top, click Servers.
- Select all the nodes and click Delete .
- Add the nodes either using a CSV file or enter them manually.
For details, go to Add the node servers.
In the steps below, substitute your new MySQL root password in place of NewRootPassword.
- Sign in to the MySQL machine.
- Open an elevated command prompt, and go to C:\MySQL\bin.
- To stop the MySQL service, enter the following command:
for /f %a in ('net start ^| find /I "mysql"') do @net stop %a
- To prepare the command file that sets the new password, enter the following command:
echo|set /p="ALTER USER 'root'@'127.0.0.1' IDENTIFIED BY 'NewRootPassword';" > password-reset-init.txt
- Record the new password in a secure location.
- To reset the password, enter the following command:
mysqld --defaults-file="C:\MySQL\my.ini" --init-file="C:\MySQL\bin\password-reset-init.txt" --console
- When logging stops, press Ctrl+Pause or Ctrl+Break to end the command.
- To delete the command file, enter the following command:
del password-reset-init.txt
- To start MySQL again, enter the following command:
for /f %a in ('net start ^| find /I "mysql"') do @net start %a
- Sign in to the database using the root user and, to test the new password, enter the following command:
C:\MySQL\bin\mysql.exe -h 127.0.0.1 -u root -p
- Enter the new password.
If the new password is unsuccessful, repeat the steps to reset the password.
Nodes offline & won’t start
If your nodes fail to start after the MySQL password expires, complete the following steps:
- Sign in to the node machine.
- Delete or rename C:\ProgramData\AppBridge\DataSourceSettings.json.
- Complete these steps to reassociate the node servers:
- In the Google Workspace Migrate platform, in the top-right corner, click Servers.
- Select all the nodes and click Delete .
- Add the nodes either using a CSV file or enter them manually.
For details, go to Add the node servers.
Related topics
Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.