Google Cloud Platform - Compute Engine - google-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.

Related

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

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?

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

Unable to Connect to Azure MySQL using MySQL Work Bench

I create a MySQL storage in Microsoft Azure. What I did is from the portal I clicked "New > Data+Storage > MySQL". The I kept the defaults and continued. After everything Azure says the storage and all is now ready.
So, I went to "DashBoard > Clicked on my newly created database resource". Now I can see my IP address of the database.
I opened MySQL Work Bench, clicked "Database >Connect to Database" and inserted the IP I found in my above step. I kept port 3306 as it is. For the user name and password I inserted the username and password I inserted during my database creation.
Anyway I really can't connect to the database, I get the below error.
I even tried editing my "Security Group" in Azure. Below is a screenshot of what it contains now.
Inbound Rules:
Outbound Rules
Even after all of these things, why I still can't connect to Azure MySQL?
I was using 'Bitnami' and 'Bitnami' comes with their own username and password! The default password for Bitnami is 'bitnami' and user name is 'root'

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.

Authenticate as a specific user in MySQL

I'm a Brand new User to MySQL DB, have installed the WAMPSERVER and I'm using MySQL through the MySQL console.
Query_1: Every time that I log in, it directly asks me for the password of root. However, i want to log in as a different user.
Query_2: If at all i do login as root, i want to switch user without closing the console.
How can I do this?
Thank you.
You can specify your username and password like this:
shell> mysql --user=user_name --password=your_password db_name
As far as I know, there is no way to change user after login without restarting the client.
I don't think its possible to switch users while in the console itself. You have to login with the different user instead.
Logging in use this command
mysql -u username -p
Then it will prompt for the password.
It is not possible to switch users in the MySQL console using WAMP. You must use SQL through the windows command line to switch users.
Steps (win 8):
1) Start
2) Type: 'command prompt'
3) Type: 'cd /'
4) Navigate to where WAMP bin is located, my location is: C:\wamp\bin\mysql\mysql5.6.17\bin by typing: 'CD wamp\bin\mysql\mysql5.6.17\bin'
5) run SQL under new user by typing 'mysql -u (username you want to use) -p (database you want to connect to)'
You will now be logged in as a new user.
If you attempt to login without specifying a user-name, MySQL will assume "root". In most cases you don't switch the user, but give a single user all the required rights;, for example to access multiple databases. If that is not possible for you, you can use two MySQL connections with two different users simultaneously.
The MySQL console provided in the wampserver admin panel, once a password is set, will prompt you for the root user's password before you can do anything. In order to log-in as a different user you need to log-in from the command-line. In order to this however, you'll need to add the file pathway to your installation of MySQL's bin folder to your user environment pathway so that your system will be able to access MySQL from the command line. To do this on windows open up file explorer, click on your C drive, open the wamp folder, open bin folder, open MySQL folder, open the MySQL folder with your installation version, open the bin folder you find there. In the file pathway bar of file explorer click on the folder icon to the left to generate the pathway to this bin folder, copy the pathway. Next open up control panel, in the search bar type the string environment variables, select edit user environment... you don't want to mess with the system environment, on the screen that appears choose the PATH variable- if it's not there then add it. Finally paste in the file pathway to MySQL's bin folder. Open up a command prompt and type mysql -u uswername -p hit return and then you'll be prompted for that user's password. Assuming of course you've made another user already.
As far as I know, once logged in as the root or any other user, the only way to switch is to exit mysql and then enter again as a different user.