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="chouqiuqiu-p-8697584.html" target="_blank">总体设计</a> <br/><a href="chouqiuqiu-p-8618523.html" target="_blank">需求分析概述</a> <br/><a href="chouqiuqiu-p-8595653.html" target="_blank">毕业论文管理系统(面向对象方法)</a> <br/><a href="chouqiuqiu-p-chouqiuqiu03.html" target="_blank">结构化与面向对象项目前期</a> <br/><a href="tuanduiboke-p-4526200.html" target="_blank">各人博客园地址链接</a> <br/><a href="tuanduiboke-p-4592585.html" target="_blank">软件测试</a> <br/><a href="tuanduiboke-p-4592283.html" target="_blank">读后感作业</a> <br/><a href="tuanduiboke-p-4591781.html" target="_blank">运行及总结</a> <br/><a href="tuanduiboke-p-4575118.html" target="_blank">图书馆管理系统面向对象编程</a> <br/><a href="tuanduiboke-p-4559003.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="qiangzheVSruozhe-p-10683053.html" target="_blank">87、代码适配IphoneX</a> <br/><a href="qiangzheVSruozhe-p-10677662.html" target="_blank">86、UIWindow简单介绍</a> <br/><a href="qiangzheVSruozhe-p-10676576.html" target="_blank">85、int 、NSInteger、NSUInteger、NSNumber的区别和联系</a> <br/><a href="qiangzheVSruozhe-p-10641521.html" target="_blank">84、自定义代码块模版</a> <br/><a href="qiangzheVSruozhe-p-10636514.html" target="_blank">83、源代码管理工具(Git)</a> <br/><a href="jokerr-p-12869238.html" target="_blank">centos下配置kafka</a> <br/><a href="jokerr-p-12867603.html" target="_blank">redis的配置</a> <br/><a href="jokerr-p-11557540.html" target="_blank">window.sesssionStorage,setItem方法使用</a> <br/><a href="jokerr-p-11555167.html" target="_blank">springboot项目启动Can not load driver class</a> <br/><a href="jokerr-p-11399761.html" target="_blank">oracle存储过程</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="jokerr-p-11383140.html" target="_blank">sql中decode方法的用法</a> <br/><a href="jokerr-p-11371827.html" target="_blank">PLSQL连接错误ora-12154:tn</a> <br/><a href="jokerr-p-11362854.html" target="_blank">oracle中sql语句小练习(使用连接查询)</a> <br/><a href="jokerr-p-11337887.html" target="_blank">配置PLSQL连接Oracle</a> <br/><a href="jokerr-p-11277720.html" target="_blank">安装tomcat</a> <br/><a href="chouqiuqiu-p-8797944.html" target="_blank">软件测试概述、结构化测试</a> <br/><a href="chouqiuqiu-p-9035154.html" target="_blank">酒店管理系统(功能结构图、流程图)</a> <br/><a href="chouqiuqiu-p-8857920.html" target="_blank">第七章 课后习题P206</a> <br/><a href="chouqiuqiu-p-8729224.html" target="_blank">系统数据结构设计(ER模式图、实体图)</a> <br/><a href="chouqiuqiu-p-8697665.html" target="_blank">需求分析(毕业论文管理图)</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>