{"id":1280,"date":"2018-02-23T11:01:17","date_gmt":"2018-02-23T16:01:17","guid":{"rendered":"https:\/\/www.zobila.com\/?p=1280"},"modified":"2021-01-31T15:36:09","modified_gmt":"2021-01-31T20:36:09","slug":"reset-mysql-root-password","status":"publish","type":"post","link":"https:\/\/www.zobila.com\/index.php\/2018\/02\/23\/reset-mysql-root-password\/","title":{"rendered":"Reset a MySQL root password"},"content":{"rendered":"<p>The MySQL root password allows the root user to have full access to the MySQL database. You must have (Linux) root or (Windows) Administrator access to the Cloud Server to reset the MySQL root password.<\/p>\n<p class=\"callout-note\">Note:\u00a0The Cloud Server (Linux) root or (Windows) Administrator account password is not the same as the MySQL password. The Cloud Server password allows access to the server. The MySQL root password allows access only to the MySQL database.<\/p>\n<p>Use the following steps to reset a MySQL root password by using the command line interface.<\/p>\n<h3 id=\"stop-the-mysql-service\">Stop the MySQL service<\/h3>\n<p>(Ubuntu and Debian) Run the following command:<\/p>\n<pre><code>sudo \/etc\/init.d\/mysql stop\r\n<\/code><\/pre>\n<p>(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command:<\/p>\n<pre><code>sudo \/etc\/init.d\/mysqld stop\r\n<\/code><\/pre>\n<h3 id=\"start-mysql-without-a-password\">Start MySQL without a password<\/h3>\n<p>Run the following command. The ampersand (&amp;) at the end of the command is required.<\/p>\n<pre><code>sudo mysqld_safe --skip-grant-tables &amp;\r\n<\/code><\/pre>\n<h3 id=\"connect-to-mysql\">Connect to MySQL<\/h3>\n<p>Run the following command:<\/p>\n<pre><code>mysql -uroot\r\n<\/code><\/pre>\n<h3 id=\"set-a-new-mysql-root-password\">Set a new MySQL root password<\/h3>\n<p>Run the following command:<\/p>\n<pre><code>use mysql;\r\n\r\nupdate user set password=PASSWORD(\"mynewpassword\") where User='root';\r\n\r\nflush privileges;\r\n\r\nquit\r\n<\/code><\/pre>\n<h3 id=\"stop-and-start-the-mysql-service\">Stop and start the MySQL service<\/h3>\n<p>(Ubuntu and Debian) Run the following commands:<\/p>\n<pre><code>sudo \/etc\/init.d\/mysql stop\r\n...\r\nsudo \/etc\/init.d\/mysql start\r\n<\/code><\/pre>\n<p>(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following commands:<\/p>\n<pre><code>sudo \/etc\/init.d\/mysqld stop\r\n...\r\nsudo \/etc\/init.d\/mysqld start\r\n<\/code><\/pre>\n<h3 id=\"log-in-to-the-database\">Log in to the database<\/h3>\n<p>Test the new password by logging in to the database.<\/p>\n<pre><code>mysql -u root -p\r\n<\/code><\/pre>\n<p>You are prompted for your new password.<\/p>\n<h6>Authored by: Rackspace Support<\/h6>\n","protected":false},"excerpt":{"rendered":"<p>The MySQL root password allows the root user to have full access to the MySQL database. You must have (Linux) root or (Windows) Administrator access&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[15],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9vClO-kE","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1278,"url":"https:\/\/www.zobila.com\/index.php\/2018\/02\/23\/using-multiple-ssl-certificates-apache-one-ip-address\/","url_meta":{"origin":1280,"position":0},"title":"Using Multiple SSL Certificates in Apache with One IP Address","author":"admin","date":"February 23, 2018","format":false,"excerpt":"Using Multiple SSL Certificates in Apache with One IP Address About the TLS Extension Server Name Indication (SNI) When website administrators and IT personnel are restricted to use a single SSL Certificate per socket (combination of IP Address and socket) it can cost a lot of money. This restriction causes\u2026","rel":"","context":"In &quot;Hosting&quot;","block_context":{"text":"Hosting","link":"https:\/\/www.zobila.com\/index.php\/category\/hosting\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1284,"url":"https:\/\/www.zobila.com\/index.php\/2018\/02\/23\/seo-60-percent-online-searches-mobile-devices\/","url_meta":{"origin":1280,"position":1},"title":"SEO &#8211; 60 percent of Online Searches from mobile devices","author":"admin","date":"February 23, 2018","format":false,"excerpt":"According to a\u00a0recent report from Hitwise, nearly 60 percent of all Online Searches are now carried out on a mobile device, with some sectors (Food and Beverage) reaching 72 percent. Hitwise analyzed hundreds of millions of online search queries across multiple devices, including 3.5 million smartphones and tablets between April\u2026","rel":"","context":"In &quot;SEO&quot;","block_context":{"text":"SEO","link":"https:\/\/www.zobila.com\/index.php\/category\/seo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1282,"url":"https:\/\/www.zobila.com\/index.php\/2018\/02\/23\/choose-domain-name\/","url_meta":{"origin":1280,"position":2},"title":"How To Choose A Domain Name","author":"admin","date":"February 23, 2018","format":false,"excerpt":"How To Choose A Domain Name A domain name is important. It will become your online identity, and choosing wisely can make or break your website. We've gathered all the information to help you choose safely, avoiding common pitfalls, legal issues, and SEO disaster. I\u2019ve done it many times, including\u2026","rel":"","context":"In &quot;Domain Name&quot;","block_context":{"text":"Domain Name","link":"https:\/\/www.zobila.com\/index.php\/category\/domain\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/posts\/1280"}],"collection":[{"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/comments?post=1280"}],"version-history":[{"count":2,"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/posts\/1280\/revisions"}],"predecessor-version":[{"id":1322,"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/posts\/1280\/revisions\/1322"}],"wp:attachment":[{"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/media?parent=1280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/categories?post=1280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zobila.com\/index.php\/wp-json\/wp\/v2\/tags?post=1280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}