Forum archive
root mysql password on startup
i have problems with mysql password on the turnkey linux images.
AMI: turnkey-wordpress-11.2-lucid-x86.ebs (ami-97b077fe)
here is the prompt.
mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
i changed passwords on login, as suggested in the following document.
/updates/lamp
BTW. these are images 'spun' from the AWS console, not your console. i did not get a prompt and thus root is open with blank password?
further, is it the root password set in a database? or the system one. do they match?
i also tried the mysqlp4ssw0rd password used in previous versions of your LAMP.
I know nothing about the AWS console and as such can't really comment on how that would all work. When launching from the TKL Hub all passwords (inc MySQL root) are preseeded prior to launch. With a TKL instance running on bare metal or local VM the first boot scripts allow you to set all passwords then, but I don't think it works like that in AWS? As you already have root access to your appliance you may be able to reset the MySQL root password by manually running the script (it works locally - not sure if it will in AWS):
Re Linux root password and access to Webmin: AFAIK if you don't set a Linux root password a random one is set and SSH access is via keypairs - although I'm not sure if it's like that when using AWS console rather than the Hub (that's what happens if you don't set a root password on launch via the Hub). Assuming that is the case, unless you manually reset the Linux root password, it will not be possible to use Webmin (as it requires the root password to login). The Hub has a commandline/python API so once you have a Hub account you can use that to launch your instance, with passwords etc.