Have a google compute cloud instance - what's my password? - google-compute-engine

So I have successfully setup a VM instance and can remote desktop in. I've been using it for a while now - but I am stumped as to what my password is. For instance - I need to unlock my default keyring but I don't know my password. Another example: I can't 'sudo' anything in terminal because I don't know my password. All the logins occur through my console/console SSL and remotedesktop.google.com so I simply don't know what my password on the machine itself is! Thoughts?

Related

Google Cloud Platform - Compute Engine

I am running a docker image of ArangoDB in a VM, with the following environment variable set:
ARANGO_ROOT_PASSWORD. The instance runs fine, but I needed to change the root password, so I edited the VM and restarted, but the newly defined password is not working. It still refers to the old password. My boot disk is set to be "kept" when the instance is deleted. Could that be the source of the issue?
Go to your VM and find the external IP. Visit that IP in your browser on port number 8529.
Example: <-vm-external-ip-address->:<8529>
Enter root as the username and provide the current root password.
Select _system DB.
Select users on the left side panel.
click on root.
Click on change password.
Enter a new password and save.
Enabling "keep disk" does not create any issue to change root password.
Refer to the link arangodb-image-on-gce for more information.

Amazon RDS MySQL: setting user names and passwords

I'm trying to allow an application to connect via a connection string, and am having no luck; the application asks for a password. The only password I can find in the console is for the root user (which I guess is also the master password). I've changed the password and am trying to log in with MySQL Workbench, but the connection is denies.
What gives? Is there a way I can create a new user and password? If not, how long does it take for a new master password to set?
You will use the credentials you supplied when the instance was first created (see screenshot)
That's the "root" permissions you have after instance creation.
If you recently changed the password, it doesn't take long to update.
As long as the instance is an an available state on the RDS console you should be good with that new password.
No matter what you're going to need to know the username of the master user which was configured at instance creation.
Once that's done you should use individual MySQL users to make application connections, but that's a story for a different thread :)
If you still cannot connect, ensure your Security Groups assigned to the instance allow connection from wherever you're connecting from and ensure your firewall isn't blocking outbound to MySQL port (3306)
Some helpful links regarding MySQL in RDS:
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ConnectToInstance.html
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateInstance.html
Some helpful links regarding MySQL general user management (after you get logged in as the master account):
https://dev.mysql.com/doc/refman/5.7/en/create-user.html
http://www.mysqltutorial.org/mysql-create-user.aspx

Connecting to a remote mySql server from my local machine

My main problem right now is that I can't connect to the remote mysql server while developing on my machine. I'm trying to update a website that was previously developed by someone I do not know. I've been editing the site on my local machine but I need to access data from the mysql database that it has been using. I have the username and password that the site uses to connect to the mysql server. I can connect to it through phpmyadmin but I would like to work locally without publishing my edits to the server.
I found this here in SO and I tried running the scripts in phpmyadmin using my pc's IPaddress but I keep getting
Access denied for user 'username'#'localhost' (using password: YES)
even though I'm 100% sure I'm using the password that I used to login to phpmyadmin. I tried creating a new user but the login I'm using doesn't seem to have a Create User privilege either.
I understand that the previous developer might have a different "admin" account that has all the privileges but I have no way of knowing either.
I am a C# developer but I'm really new to MySql. Any help is greatly appreciated.
This may be a firewall issue. phpmyadmin listens on port 80 by default, but mySQL listens on port 3306. Please check the firewalls on your local PC (to make sure you can get out on 3306) and the server (to make sure you can get in on 3306).

Recovering admin ID and password for local installation of MySQL

I have MySQL installed locally on my Windows 7 Pro (64-bit) laptop.
I remember setting admin credentials but do not recall any details and was not able to locate my notes.
What can I do short of reinstalling the entire product?
I have found some links for restoring ROOT password but I'm not sure whether it's actually the same as admin password.
I'm not even sure what other information that I can provide could be helpful.
root is the MySQL system administrator.
Unless you've set up another user called admin, then you'll get what you want by resetting the root password. Else if you have another user called admin, after you reset your root password you can go about setting your admin password.

How do I get the CloudBees Database password

I want to access my CloudBees managed Database (MySQL) with a password from my app and client - how to I get it?
First, you will need to install the command line tools
Run
bees db:info -p youraccount/dbname
and this will show all the details you need.
(-p means to show the password on the terminal, it won't by default).
If you use "bees app:bind" - or a clickstart setup your DB binding for you - your app should already be wired up to connect to the database when it runs in cloudbees (you shouldn't need to ever see the password in this case).