{"id":6992,"date":"2022-12-22T11:53:06","date_gmt":"2022-12-22T06:23:06","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=6992"},"modified":"2026-09-01T11:34:53","modified_gmt":"2026-09-01T06:04:53","slug":"how-to-reset-the-zabbix-admin-password-by-using-mysql-on-ubuntu","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-reset-the-zabbix-admin-password-by-using-mysql-on-ubuntu\/","title":{"rendered":"How to Reset the Zabbix Admin Password Using MySQL on Ubuntu"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Zabbix is an open-source monitoring tool used for monitoring servers, networks, IT components, cloud services, and virtual machines. It provides monitoring metrics such as network utilization, disk space consumption, and CPU load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have lost access to the Zabbix administrator account, you can reset the <strong>Zabbix admin password directly through the MySQL database<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to reset the Zabbix Admin password using MySQL on an Ubuntu server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before resetting the Zabbix Admin password, make sure you have:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Server root login.<\/li>\n\n\n\n<li>MySQL root login or Zabbix database user login.<\/li>\n\n\n\n<li>Access to the Zabbix MySQL database.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Log in to the Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the Ubuntu server using SSH:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ ssh root@ip<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Log in to MySQL<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the MySQL command prompt using a user that has full access to the Zabbix database:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$ mysql -u user_name -p<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image.png\"><img decoding=\"async\" width=\"366\" height=\"61\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image.png\" alt=\"\" class=\"wp-image-6993\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image.png 366w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-300x50.png 300w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Select the Zabbix Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to the Zabbix database:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql> use zabbix_database;<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-1.png\"><img decoding=\"async\" width=\"346\" height=\"36\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-1.png\" alt=\"\" class=\"wp-image-6994\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-1.png 346w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-1-300x31.png 300w\" sizes=\"(max-width: 346px) 100vw, 346px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Step 4: Reset the Zabbix Admin Password<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update the password for the <strong>admin<\/strong> user:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql> update users set passwd=md5('YOUR_NEW_PASSWORD') where alias='Admin';<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>YOUR_NEW_PASSWORD<\/code> with the new password you want to set.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Exit MySQL<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After updating the password, exit the MySQL command prompt:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mysql> exit<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once the password has been reset, you can access the Zabbix admin panel through the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/your_server_ip\/zabbix<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Log in using the <strong>admin<\/strong> username and the newly configured password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"616\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2-1024x616.png\" alt=\"\" class=\"wp-image-6995\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2-1024x616.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2-300x180.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2-768x462.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2-499x300.png 499w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2022\/12\/image-2.png 1038w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How can I reset the Zabbix Admin password on Ubuntu?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can reset it by logging in to the Zabbix MySQL database and updating the password for the <code>Admin<\/code> user in the <code>users<\/code> table.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which database is used in this procedure?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This procedure uses the <strong>MySQL database<\/strong> associated with the Zabbix installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need root access to reset the Zabbix password?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You need access to the server and a MySQL account with sufficient permissions to access and update the Zabbix database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is the Zabbix admin username?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The administrator account referenced in this procedure is identified by the alias:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Admin<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">How do I access Zabbix after resetting the password?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After resetting the password, access the Zabbix web interface using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/your_server_ip\/zabbix<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then log in with the admin account and the newly configured password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Install Ubuntu Server and Zabbix on Raspberry Pi<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Learn how to install and configure <strong>Ubuntu Server and Zabbix on a Raspberry Pi<\/strong> to set up a Zabbix monitoring environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-install-ubuntu-server-and-zabbix-on-raspberry-pi\/?utm_source=chatgpt.com\">How to Install Ubuntu Server and Zabbix on Raspberry Pi<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add Zabbix Agents, Configure Alerting and Monitor Your Infrastructure<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Learn how to add <strong>Zabbix agents<\/strong>, configure alerting, and monitor your infrastructure using Zabbix.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-add-zabbix-agents-configure-alerting-and-monitor-your-infrastructure\/?utm_source=chatgpt.com\">How to Add Zabbix Agents, Configure Alerting and Monitor Your Infrastructure<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to our experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for the right technology solution for your business? Our team of experts can help you with development, cloud, DevOps, design, and a wide range of other technology needs. Get in touch with our team&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Zabbix is an open-source monitoring tool used for monitoring servers, networks, IT components, cloud services, and virtual machines. It [&hellip;]<\/p>\n","protected":false},"author":496,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1024],"tags":[],"class_list":["post-6992","post","type-post","status-publish","format-standard","hentry","category-security","psol-cat-security"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1OM","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/496"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6992"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6992\/revisions"}],"predecessor-version":[{"id":11259,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6992\/revisions\/11259"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}