{"id":2275,"date":"2019-12-12T16:09:31","date_gmt":"2019-12-12T16:09:31","guid":{"rendered":"http:\/\/www.richa1.com\/RichardAlbritton\/?p=2275"},"modified":"2020-02-12T00:59:07","modified_gmt":"2020-02-12T00:59:07","slug":"wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2","status":"publish","type":"post","link":"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/","title":{"rendered":"Wireless NAT server E-ink badge with Apache, PHP, SQL, Media Wiki, and MQTT"},"content":{"rendered":"<p>If you can not connect MediaWiki with your MySQL password and user name, do the following steps.<\/p>\n<pre class=\"lang:default decode:true \">sudo \/etc\/init.d\/mysql stop<\/pre>\n<p>Once MySQL has stopped, run:<\/p>\n<pre class=\"lang:default decode:true\">sudo mysqld_safe --skip-grant-tables &amp;<\/pre>\n<p>When MariaDB is loaded, run the following command but replace&nbsp;<em>username<\/em>&nbsp;and&nbsp;<em>password<\/em>&nbsp;with one of your choosing.<\/p>\n<pre class=\"lang:default decode:true\">GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';<\/pre>\n<p>Or try to reset the root password:<\/p>\n<pre class=\"lang:default decode:true\">sudo \/etc\/init.d\/mysql stop\nsudo mysqld_safe --skip-grant-tables &amp;\nsudo mysql -uroot<\/pre>\n<p>when MariaDB is loaded, run the following commands but replace&nbsp;<em>newpassword<\/em>&nbsp;with the one you want.<\/p>\n<pre class=\"lang:default decode:true \">use mysql;<\/pre>\n<p>press enter, then:<\/p>\n<pre class=\"lang:default decode:true\">update user set password=PASSWORD(\"newpassword\") where User='root';<\/pre>\n<p>press enter, then:<\/p>\n<pre class=\"lang:default decode:true\">flush privileges;<\/pre>\n<p>press enter, then:<\/p>\n<pre class=\"lang:default decode:true \">quit\n<\/pre>\n<p>press enter<\/p>\n<p>Now stop and restart MySQL<\/p>\n<pre class=\"lang:default decode:true \">sudo \/etc\/init.d\/mysql stop\nsudo \/etc\/init.d\/mysql start<\/pre>\n<p>Try logging into MySQL<\/p>\n<pre class=\"lang:default decode:true\">sudo mysql -u root -p<\/pre>\n<p>At this point you may have to add a new user if the root password will not work.<\/p>\n<p>After logging into MySQL, like before, run this command:<\/p>\n<pre class=\"lang:default decode:true\">GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';<\/pre>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/\" target=\"_blank\" title=\"Click to print\"><span>Print<\/span><\/a><\/li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/?share=email\" target=\"_blank\" title=\"Click to email this to a friend\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-2275\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-2275\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>If you can not connect MediaWiki with your MySQL password and user name, do the following steps. sudo \/etc\/init.d\/mysql stop Once MySQL has stopped, run: sudo mysqld_safe &#8211;skip-grant-tables &amp; When MariaDB is loaded, run the following command but replace&nbsp;username&nbsp;and&nbsp;password&nbsp;with one of your choosing. GRANT ALL PRIVILEGES ON *.* TO &#8216;username&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;; Or try &hellip; <a href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Wireless NAT server E-ink badge with Apache, PHP, SQL, Media Wiki, and MQTT<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/\" target=\"_blank\" title=\"Click to print\"><span>Print<\/span><\/a><\/li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/?share=email\" target=\"_blank\" title=\"Click to email this to a friend\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-2275\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-2275\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/wireless-nat-server-e-ink-badge-with-apache-php-sql-media-wiki-and-mqtt-2\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":2354,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[165,15],"jetpack_featured_media_url":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2019\/12\/Raspi-PGB001.png","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5AhH6-AH","_links":{"self":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/2275"}],"collection":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/comments?post=2275"}],"version-history":[{"count":2,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/2275\/revisions"}],"predecessor-version":[{"id":2355,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/2275\/revisions\/2355"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/media\/2354"}],"wp:attachment":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/media?parent=2275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/categories?post=2275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/tags?post=2275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}