Ok I think I've ruled out a mis-config, and I'm not sure why I'm getting this error now:
2020-11-16 22:11:22 : INFO : Extracting DB User password from jcampbell_ud2wp.opalmigration-local.passwd
2020-11-16 22:11:22 : INFO : Writing sqlpasswd file to jcampbell_ud2wp.opalmigration-local.passwd
2020-11-16 22:11:22 : INFO : Changing app config DB credentials in /home/jcampbell/apps/ud2wp/wp-config.php
2020-11-16 22:11:22 : INFO : Importing DB using sqlpasswd file jcampbell_ud2wp.opalmigration-local.passwd
ERROR 1045 (28000): Access denied for user 'jcampbell_ud2wp'@'localhost' (using password: YES)
Traceback (most recent call last):
File "/usr/local/bin/wfmigrate", line 71, in <module>
migrator.run()
File "/opt/app_migrators-1.5.2/wf_wordpress/migrator.py", line 210, in run
self.migrate()
File "/opt/app_migrators-1.5.2/wf_wordpress/migrator.py", line 186, in migrate
self.wf_migrator_maria.import_db()
File "/opt/app_migrators-1.5.2/lib/wf_migrator_maria.py", line 157, in import_db
raise RuntimeError(f'Command "{cmd}" exited with status {result.returncode}')
RuntimeError: Command "['mysql', '--defaults-extra-file=jcampbell_ud2wp.opalmigration-local.passwd', '-u', 'jcampbell_ud2wp', 'jcampbell_ud2wp']" exited with status 1
The DB has been created, as has the DB user, and the password generated ok and inserted into the .opalmigration-local.passwd file. However inside that file the password entry looks suspect. If the password is ABCD then the actual file is:
[mysql]
host=localhost
port=3306
user=jcampbell_ud2wp
password='"ABCD"'
With both 'single' and "double" quotes around the password, is that correct?
I also tried by copying the created DB name/user/password into the config.ini and re-running, but this results in the same '"double"' quotes and the same error. (Logs taken from the second run which is why it's password: YES).
Any hints what could be wrong?
Thanks.