Azure / wordpress-linux-appservice

MIT License
113 stars 71 forks source link

Migration tool fails with mySql servername error #78

Closed ryan-adler closed 1 year ago

ryan-adler commented 1 year ago

Message received: Invalid MySQL servername found! serverHostName=

Where is it looking for this value?

saisubodhMSFT commented 1 year ago

Hi @ryan-adler, This message is thrown when the MySQL servername in database connection string of the selected windows app service (source site) is invalid.

You can find this database connection string in configurations blade of the windows app service resource as shown

Screenshot 2023-05-30 122601

NOTE: Rename the connection string to 'defaultConnection' since having a connection string with a different name will not be picked up by the migration tool.

If you dont find any connection string in configuration blade, then add one named 'defaultConnection' with the following string. Replace the values appropriately.

Database=;Data Source=;User Id=;Password=

rabollin commented 1 year ago

@ryan-adler - Is your issue resolved and can this be closed?

ryan-adler commented 1 year ago

I am sure that the connection string was correct at the time. In any case, I don't have time to test this anymore, so I suppose you can close it.

rabollin commented 1 year ago

As confirmed closing the issue