zoukankan      html  css  js  c++  java
  • 打赏 jQuery火箭图标返回顶部代码</h1> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <div style=" height: 200px; overflow:hidden;"> <span class="pre-scrollable"><div id="cnblogs_post_body" class="blogpost-body"> <p>1打开mysql.exe和mysqld.exe所在的文件夹,复制路径地址</p> <p><img src="https://img2018.cnblogs.com/blog/1430251/201810/1430251-20181028195346598-1465117648.png" alt="" /></p> <p>输入命令  mysqld --skip-grant-tables  回车,此时就跳过了mysql的用户验证。注意输入此命令之后命令行就无法操作了,此时可以再打开一个新的命令行。注意:在输入此命令之前先在任务管理器中结束mysqld.exe进程,确保mysql服务器端已结束运行。</p> <p><img src="https://img2018.cnblogs.com/blog/1430251/201810/1430251-20181028195505400-99633360.png" alt="" /></p> <p><img src="https://img2018.cnblogs.com/blog/1430251/201810/1430251-20181028195604542-207983265.png" alt="" /></p> <p> 输入mysql登陆</p> <div class="cnblogs_code"> <pre><span style="color: #008080;user-select:none;"> 1</span> C:UsersAdministrator><span style="color: #000000;">mysql </span><span style="color: #008080;user-select:none;"> 2</span> <span style="color: #000000;">Welcome to the MySQL monitor. Commands end with ; or g. </span><span style="color: #008080;user-select:none;"> 3</span> Your MySQL connection id <span style="color: #0000ff;">is</span> <span style="color: #800080;">3</span> <span style="color: #008080;user-select:none;"> 4</span> Server version: <span style="color: #800080;">5.5</span>.<span style="color: #800080;">40</span><span style="color: #000000;"> MySQL Community Server (GPL) </span><span style="color: #008080;user-select:none;"> 5</span> Copyright (c) <span style="color: #800080;">2000</span>, <span style="color: #800080;">2014</span>, Oracle and/<span style="color: #000000;">or its affiliates. All rights reserved. </span><span style="color: #008080;user-select:none;"> 6</span> Oracle <span style="color: #0000ff;">is</span> a registered trademark of Oracle Corporation and/<span style="color: #000000;">or its </span><span style="color: #008080;user-select:none;"> 7</span> <span style="color: #000000;">affiliates. Other names may be trademarks of their respective </span><span style="color: #008080;user-select:none;"> 8</span> <span style="color: #000000;">owners. </span><span style="color: #008080;user-select:none;"> 9</span> Type <span style="color: #800000;">'</span><span style="color: #800000;">help;</span><span style="color: #800000;">'</span> or <span style="color: #800000;">'</span><span style="color: #800000;">h</span><span style="color: #800000;">'</span> <span style="color: #0000ff;">for</span> help. Type <span style="color: #800000;">'</span><span style="color: #800000;">c</span><span style="color: #800000;">'</span><span style="color: #000000;"> to clear the current input statement. </span><span style="color: #008080;user-select:none;">10</span> mysql></pre> </div> <div class="cnblogs_code"> <pre><span style="color: #008080;user-select:none;"> 1</span> mysql><span style="color: #000000;"> show databases; </span><span style="color: #008080;user-select:none;"> 2</span> +--------------------+ <span style="color: #008080;user-select:none;"> 3</span> | Database | <span style="color: #008080;user-select:none;"> 4</span> +--------------------+ <span style="color: #008080;user-select:none;"> 5</span> | information_schema | <span style="color: #008080;user-select:none;"> 6</span> | itcastoa0720 | <span style="color: #008080;user-select:none;"> 7</span> | kingoa | <span style="color: #008080;user-select:none;"> 8</span> | mysql | <span style="color: #008080;user-select:none;"> 9</span> | performance_schema | <span style="color: #008080;user-select:none;">10</span> | qin | <span style="color: #008080;user-select:none;">11</span> | student | <span style="color: #008080;user-select:none;">12</span> | test | <span style="color: #008080;user-select:none;">13</span> +--------------------+ <span style="color: #008080;user-select:none;">14</span> <span style="color: #800080;">8</span> rows <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.01</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">15</span> <span style="color: #008080;user-select:none;">16</span> mysql><span style="color: #000000;"> use mysql </span><span style="color: #008080;user-select:none;">17</span> <span style="color: #000000;">Database changed </span><span style="color: #008080;user-select:none;">18</span> mysql><span style="color: #000000;"> show tables; </span><span style="color: #008080;user-select:none;">19</span> +---------------------------+ <span style="color: #008080;user-select:none;">20</span> | Tables_in_mysql | <span style="color: #008080;user-select:none;">21</span> +---------------------------+ <span style="color: #008080;user-select:none;">22</span> | columns_priv | <span style="color: #008080;user-select:none;">23</span> | db | <span style="color: #008080;user-select:none;">24</span> | <span style="color: #0000ff;">event</span> | <span style="color: #008080;user-select:none;">25</span> | func | <span style="color: #008080;user-select:none;">26</span> | general_log | <span style="color: #008080;user-select:none;">27</span> | help_category | <span style="color: #008080;user-select:none;">28</span> | help_keyword | <span style="color: #008080;user-select:none;">29</span> | help_relation | <span style="color: #008080;user-select:none;">30</span> | help_topic | <span style="color: #008080;user-select:none;">31</span> | host | <span style="color: #008080;user-select:none;">32</span> | ndb_binlog_index | <span style="color: #008080;user-select:none;">33</span> | plugin | <span style="color: #008080;user-select:none;">34</span> | proc | <span style="color: #008080;user-select:none;">35</span> | procs_priv | <span style="color: #008080;user-select:none;">36</span> | proxies_priv | <span style="color: #008080;user-select:none;">37</span> | servers | <span style="color: #008080;user-select:none;">38</span> | slow_log | <span style="color: #008080;user-select:none;">39</span> | tables_priv | <span style="color: #008080;user-select:none;">40</span> | time_zone | <span style="color: #008080;user-select:none;">41</span> | time_zone_leap_second | <span style="color: #008080;user-select:none;">42</span> | time_zone_name | <span style="color: #008080;user-select:none;">43</span> | time_zone_transition | <span style="color: #008080;user-select:none;">44</span> | time_zone_transition_type | <span style="color: #008080;user-select:none;">45</span> | user | <span style="color: #008080;user-select:none;">46</span> +---------------------------+ <span style="color: #008080;user-select:none;">47</span> <span style="color: #800080;">24</span> rows <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.01</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">48</span> <span style="color: #008080;user-select:none;">49</span> mysql> <span style="color: #0000ff;">select</span> user,host,password <span style="color: #0000ff;">from</span><span style="color: #000000;"> user; </span><span style="color: #008080;user-select:none;">50</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">51</span> | user | host | password | <span style="color: #008080;user-select:none;">52</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">53</span> | root | localhost | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B | <span style="color: #008080;user-select:none;">54</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">55</span> <span style="color: #800080;">1</span> row <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.00</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">56</span> <span style="color: #008080;user-select:none;">57</span> mysql> update user <span style="color: #0000ff;">set</span> password=password(<span style="color: #800000;">'</span><span style="color: #800000;">123456</span><span style="color: #800000;">'</span>) <span style="color: #0000ff;">where</span> user=<span style="color: #800000;">'</span><span style="color: #800000;">root</span><span style="color: #800000;">'</span> and host=<span style="color: #800000;">'</span><span style="color: #800000;">l</span> <span style="color: #008080;user-select:none;">58</span> ocalhost<span style="color: #800000;">'</span><span style="color: #800000;">;</span> <span style="color: #008080;user-select:none;">59</span> Query OK, <span style="color: #800080;">1</span> row affected (<span style="color: #800080;">0.00</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">60</span> Rows matched: <span style="color: #800080;">1</span> Changed: <span style="color: #800080;">1</span> Warnings: <span style="color: #800080;">0</span> <span style="color: #008080;user-select:none;">61</span> <span style="color: #008080;user-select:none;">62</span> mysql> <span style="color: #0000ff;">select</span> user,host,password <span style="color: #0000ff;">from</span><span style="color: #000000;"> user; </span><span style="color: #008080;user-select:none;">63</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">64</span> | user | host | password | <span style="color: #008080;user-select:none;">65</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">66</span> | root | localhost | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 | <span style="color: #008080;user-select:none;">67</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">68</span> <span style="color: #800080;">1</span> row <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.00</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">69</span> <span style="color: #008080;user-select:none;">70</span> mysql></pre> </div> <p>重新打开一个cmd命令窗口,测试</p> <div class="cnblogs_code"> <pre><span style="color: #008080;user-select:none;"> 1</span> C:UsersAdministrator>mysql -u root -<span style="color: #000000;">p123456 </span><span style="color: #008080;user-select:none;"> 2</span> <span style="color: #000000;">Welcome to the MySQL monitor. Commands end with ; or g. </span><span style="color: #008080;user-select:none;"> 3</span> Your MySQL connection id <span style="color: #0000ff;">is</span> <span style="color: #800080;">7</span> <span style="color: #008080;user-select:none;"> 4</span> Server version: <span style="color: #800080;">5.5</span>.<span style="color: #800080;">40</span><span style="color: #000000;"> MySQL Community Server (GPL) </span><span style="color: #008080;user-select:none;"> 5</span> <span style="color: #008080;user-select:none;"> 6</span> Copyright (c) <span style="color: #800080;">2000</span>, <span style="color: #800080;">2014</span>, Oracle and/<span style="color: #000000;">or its affiliates. All rights reserved. </span><span style="color: #008080;user-select:none;"> 7</span> <span style="color: #008080;user-select:none;"> 8</span> Oracle <span style="color: #0000ff;">is</span> a registered trademark of Oracle Corporation and/<span style="color: #000000;">or its </span><span style="color: #008080;user-select:none;"> 9</span> <span style="color: #000000;">affiliates. Other names may be trademarks of their respective </span><span style="color: #008080;user-select:none;">10</span> <span style="color: #000000;">owners. </span><span style="color: #008080;user-select:none;">11</span> <span style="color: #008080;user-select:none;">12</span> Type <span style="color: #800000;">'</span><span style="color: #800000;">help;</span><span style="color: #800000;">'</span> or <span style="color: #800000;">'</span><span style="color: #800000;">h</span><span style="color: #800000;">'</span> <span style="color: #0000ff;">for</span> help. Type <span style="color: #800000;">'</span><span style="color: #800000;">c</span><span style="color: #800000;">'</span><span style="color: #000000;"> to clear the current input statement. </span><span style="color: #008080;user-select:none;">13</span> <span style="color: #008080;user-select:none;">14</span> mysql></pre> </div> </div> </span> </div> <div style="text-align: center;"> <a href="https://www.cnblogs.com/liang-io/p/9866860.html" target="_blank" style="font-size: 16px;background-color: rgb(24, 144, 255); color: white;padding: 8px;padding-left: 30px;padding-right: 30px;border-radius: 2rem;">查看全文</a> </div> </li> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <li class="ul-li" style="padding-left:15px;padding-right: 15px;"> <b>相关阅读:</b><br> <nobr> <a href="zllk-p-13363802.html" target="_blank">《第一行代码》阅读笔记(十四)——ViewPager</a> <br/><a href="zllk-p-13363771.html" target="_blank">《第一行代码》阅读笔记(十三)——碎片的最佳案例</a> <br/><a href="zllk-p-13363742.html" target="_blank">《第一行代码》阅读笔记(十二)——探究碎片</a> <br/><a href="zllk-p-13363733.html" target="_blank">《第一行代码》阅读笔记(十一)——编写界面的最佳案例</a> <br/><a href="zllk-p-13363729.html" target="_blank">《第一行代码》阅读笔记(十)——RecyclerView</a> <br/><a href="zllk-p-13363723.html" target="_blank">《第一行代码》阅读笔记(九)——ListView</a> <br/><a href="zllk-p-13363709.html" target="_blank">《第一行代码》阅读笔记(八)——自定义控件</a> <br/><a href="zllk-p-13363691.html" target="_blank">《第一行代码》阅读笔记(七)——Android经典四种布局</a> <br/><a href="zllk-p-13363672.html" target="_blank">《第一行代码》阅读笔记(六)——AndroidUI控件(初级)</a> <br/><a href="donleo123-p-14070418.html" target="_blank">后台管理系统左侧菜单栏显示隐藏</a> <br/> </nobr> </li> <div style="border: 1px solid #dfdfdf;border-top:none;"></div> <li class="list-group-item from-a mb-2" style="margin:15px;"> 原文地址:https://www.cnblogs.com/liang-io/p/9866860.html </li> </ul> </div> <!-- 右侧开始 --> <div class="right-kd" style="margin: auto;margin: 0px;float: left;"> <ul class="right-kd" style="word-break:break-all;border: 1px solid #dfdfdf;border-radius: 3px 3px 3px 3px;padding: 0px;margin: 0px;"> <li class="ul-li-bg ul-li-title" aria-current="true" style="padding-left:15px;padding-right: 15px;"> 最新文章 </li> <li class="ul-li" style="padding-left:15px;padding-right:15px;"> <nobr> <a href="erlou96-p-13542288.html" target="_blank">linux安装最新版本的npm和node</a> <br/><a href="erlou96-p-13539720.html" target="_blank">shell脚本执行错误 $' ':command not found</a> <br/><a href="erlou96-p-13539696.html" target="_blank">编译zeppelin0.9.0</a> <br/><a href="erlou96-p-13535462.html" target="_blank">nodejs 安装到升级 排坑之旅</a> <br/><a href="erlou96-p-13533177.html" target="_blank">hadoop-daemon.sh 和Hadoop-daemons.sh 的区别</a> <br/><a href="erlou96-p-13530557.html" target="_blank">使用gitLab clone代码报错:error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset</a> <br/><a href="klvchen-p-14143462.html" target="_blank">Java 基础(关键字, 保留字, 标识符, 命名规范)</a> <br/><a href="klvchen-p-14132819.html" target="_blank">Java 基础(基础知识图解, 语言特定, 编写, 编译, 运行, 注释方法, API 文档)</a> <br/><a href="klvchen-p-14137603.html" target="_blank">Helm v3 安装使用</a> <br/><a href="klvchen-p-12985560.html" target="_blank">Arthas</a> <br/> </nobr> </li> </ul> <ul class="right-kd" style="word-break:break-all;border: 1px solid #dfdfdf;border-radius: 3px 3px 3px 3px;padding: 0px;margin-top: 10px;"> <li class="list-group-item ul-li-bg ul-li-title" aria-current="true" style="padding-left:15px;padding-right: 15px;"> 热门文章 </li> <li class="ul-li" style="padding-left:15px;padding-right: 15px;"> <nobr> <a href="niuben-p-14440264.html" target="_blank">go sync.map的使用</a> <br/><a href="niuben-p-14437511.html" target="_blank">go 遍历修改切片数据 </a> <br/><a href="niuben-p-14429025.html" target="_blank">Go new函数 例子解析答疑</a> <br/><a href="niuben-p-14427608.html" target="_blank">Golang 入门 : Go语言介绍</a> <br/><a href="niuben-p-14419579.html" target="_blank">DB读写分离情况下,如何解决缓存和数据库不一致性问题?</a> <br/><a href="niuben-p-14419418.html" target="_blank">如何更新缓存保证缓存和数据库双写一致性?</a> <br/><a href="niuben-p-14419328.html" target="_blank">怎么解决DB读写分离,导致数据不一致问题?</a> <br/><a href="niuben-p-14419208.html" target="_blank">Redis面试题汇总</a> <br/><a href="niuben-p-14419188.html" target="_blank">如何保障消息100%投递成功、消息幂等性?</a> <br/><a href="zllk-p-13369679.html" target="_blank">《第一行代码》阅读笔记(十五)——ViewPager的最佳案例(TabLayout+ViewPager+Fragment)</a> <br/> </nobr> </li> </ul> </div> </div> </div> <div style="clear: both;"></div> <!-- 栅栏结束 --> <div class="kd" style="margin: auto;"> <div style="font-size:0.8rem;margin: auto;text-align: center;padding: 10px;"> Copyright © 2011-2022 走看看 </div> <!-- 引入底部 --> <!-- 百度自动推送js --> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else{ bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!-- 百度自动推送js --> </div> </div> <script src="https://common.cnblogs.com/scripts/jquery-2.2.0.min.js"></script> <script src="https://www.cnblogs.com/js/blog-common.min.js"></script> <script src="http://common.cnblogs.com/script/encoder.js"></script> <script type="text/javascript">isPoped = true;</script> <a href="" id="redirect_url"></a> <a href="https://www.cnblogs.com/liang-io/p/9866860.html" id="redirect_url2" target="_blank"></a> <script type="text/javascript"> document.onclick = function() { if (!isPoped) { document.getElementById("redirect_url").click(); document.getElementById("redirect_url2").click(); isPoped = true; } } </script> </body> </html>