<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>credentials on IT Quicktasks</title><link>https://quicktasks.ismael.casimpan.com/tags/credentials/</link><description>Recent content in credentials on IT Quicktasks</description><generator>Hugo -- gohugo.io</generator><copyright>Copyright © 2018–2022, Ismael Casimpan Jr.; All Rights Reserved</copyright><lastBuildDate>Tue, 12 May 2020 23:11:25 +0800</lastBuildDate><atom:link href="https://quicktasks.ismael.casimpan.com/tags/credentials/index.xml" rel="self" type="application/rss+xml"/><item><title>MySQL/MariaDB with Credentials File</title><link>https://quicktasks.ismael.casimpan.com/post/mysql-with-credentials-file/</link><pubDate>Tue, 12 May 2020 23:11:25 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/mysql-with-credentials-file/</guid><description>
Using a configuration file for mysql is a good practice as you don't immediately expose credentials. Below, you are going to mysql cli and immediately using the db named dbName.
1mysql --defaults-file=/path/to/credentials.ini dbName where credentials.ini has this format:
1[client] 2host=&amp;lt;replace_with_servername_or_ip&amp;gt; 3user=&amp;lt;replace_with_db_user&amp;gt; 4password=&amp;lt;replace_with_db_password&amp;gt; Of course, there are other security precautions you could take, not just the above but it's a good start. See further info on securing mysql in https://dev.mysql.com/doc/refman/8.0/en/password-security-user.html</description></item><item><title>Curl with Credentials File</title><link>https://quicktasks.ismael.casimpan.com/post/curl-with-credentials-file/</link><pubDate>Tue, 12 May 2020 00:20:25 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/curl-with-credentials-file/</guid><description>
1curl --config /path/to/config-file &amp;lt;url_here&amp;gt; where config-file has this format:
1-u username:password</description></item><item><title>Change drupal user credential</title><link>https://quicktasks.ismael.casimpan.com/post/change-drupal-credential/</link><pubDate>Mon, 30 Mar 2020 00:14:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/change-drupal-credential/</guid><description>
Go to drupal root, then:
1drush upwd --password=&amp;#34;newPassword_here&amp;#34; &amp;#34;the_user&amp;#34; More info in https://www.drupal.org/node/44164</description></item><item><title>Curl with Authentication Credentials</title><link>https://quicktasks.ismael.casimpan.com/post/curl-with-authentication-credentials/</link><pubDate>Sat, 21 Sep 2019 00:20:25 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/curl-with-authentication-credentials/</guid><description>
1curl -u user:password &amp;lt;url_here&amp;gt;</description></item><item><title>Automysqlbackup: Cannot Use Root Credentials From MySQL CLI</title><link>https://quicktasks.ismael.casimpan.com/post/automysqlbackup-cannot-use-root-credentials-from-mysql-cli/</link><pubDate>Mon, 15 Oct 2018 12:00:13 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/automysqlbackup-cannot-use-root-credentials-from-mysql-cli/</guid><description>
1[root@rh icasimpan]# /usr/local/bin/automysqlbackup /etc/automysqlbackup/rh.conf 2Parsed config file &amp;#34;/etc/automysqlbackup/automysqlbackup.conf&amp;#34; 34# Checking for permissions to write to folders: 5base folder /var/lib ... exists ... ok. 6backup folder /var/lib/automysqlbackup ... exists ... writable? yes. Proceeding. 7checking directory &amp;#34;/var/lib/automysqlbackup/daily&amp;#34; ... exists. 8checking directory &amp;#34;/var/lib/automysqlbackup/weekly&amp;#34; ... exists. 9checking directory &amp;#34;/var/lib/automysqlbackup/monthly&amp;#34; ... exists. 10checking directory &amp;#34;/var/lib/automysqlbackup/latest&amp;#34; ... exists. 11checking directory &amp;#34;/var/lib/automysqlbackup/tmp&amp;#34; ... exists. 12checking directory &amp;#34;/var/lib/automysqlbackup/fullschema&amp;#34; ... exists. 13checking directory &amp;#34;/var/lib/automysqlbackup/status&amp;#34; ... exists. 1415# Testing for installed programs 16mysql .</description></item><item><title>DB Credentials via Drush</title><link>https://quicktasks.ismael.casimpan.com/post/db-credentials-via-drush/</link><pubDate>Mon, 09 Apr 2018 00:14:45 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/db-credentials-via-drush/</guid><description>
Go to drupal root, then:
1drush st --show-passwords database In drush 9.7.2 (may also work for other sub-versions of drush 9), the following command should be used:
1drush st DB</description></item><item><title>Change MySQL User Credentials</title><link>https://quicktasks.ismael.casimpan.com/post/change-mysql-user-credentials/</link><pubDate>Sun, 08 Apr 2018 23:20:10 +0800</pubDate><guid>https://quicktasks.ismael.casimpan.com/post/change-mysql-user-credentials/</guid><description>
For as long as you have root access to MySQL, this would work:
1UPDATE mysql.user SET Password=PASSWORD(&amp;#39;new-password-here&amp;#39;) WHERE USER=&amp;#39;user-name-here&amp;#39; AND Host=&amp;#39;host-name-here&amp;#39;; more details from https://www.cyberciti.biz/faq/mysql-change-user-password/</description></item></channel></rss>