Skip to content
Friday, May 09, 2025

DBA Notes

DBA Notes
  • AWS
  • Oracle
  • Postgres
  • Linux
  • Docker
  • MySQL
  • mongodb
DBA Notes

Categories

  • AWS (9)
  • Docker (7)
  • General (4)
  • Linux (14)
  • mongodb (1)
  • MySQL (10)
  • notepad++ (2)
  • Oracle (90)
  • performance (44)
  • Postgres (92)
  • postgresql (8)
  • SQL (16)
  • Windows (7)
Linux MySQL

MySQL login root without password in Linux

Bulent Soylu March 2, 2022 linuxmysql
vim ~/.my.cnf

[client]
user=root
password=<your password>

to add more users just add more user and password in ~/.my.cnf

[mysql]
user=user
password=pass
[mysqladmin]
user=user
password=pass

Related posts:

  1. Docker linux add sudoers, alias commit image
  2. How to Configure and Use PAM in Linux
  3. Adding postgres as SUDOERS in centos
  4. How to Configure Virtual IP Address (VIP) on CentOS

Post navigation

Previous Previous post: Install MySQL Docker
Next Next post: DBA Interview Questions
Log in

You may also like

  1. Docker linux add sudoers, alias commit image
  2. How to Configure and Use PAM in Linux
  3. Adding postgres as SUDOERS in centos
  4. How to Configure Virtual IP Address (VIP) on CentOS

linux (9)mysql (5)

Recent Posts

  • π—¦π—€π—Ÿ π—€π˜‚π—²π—Ώπ˜† π—˜π˜…π—²π—°π˜‚π˜π—Άπ—Όπ—» 𝗒𝗿𝗱𝗲𝗿!
  • TABLE FRAGMENTATION IN ORACLEΒ DATABASE
  • Configuring Huge Pages for MySQL Server on Red Hat Linux
  • HUGE PAGES AND POSTGRESQL
  • How to configure HugePages for Oracle Database Server

Archives

  • October 2024 (1)
  • August 2024 (1)
  • March 2024 (3)
  • January 2024 (3)
  • December 2023 (7)
  • October 2023 (17)
  • September 2023 (6)
  • August 2023 (23)
  • July 2023 (10)
  • June 2023 (4)
  • May 2023 (11)
  • April 2023 (15)
  • March 2023 (6)
  • February 2023 (2)
  • January 2023 (11)
  • December 2022 (1)
  • August 2022 (3)
  • March 2022 (10)
  • February 2022 (2)
  • January 2022 (6)
  • December 2021 (3)
  • November 2021 (7)
  • October 2021 (51)
  • September 2021 (4)

DBA Notes | Designed by: Theme Freesia | WordPress | © Copyright All right reserved