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="mingforyou-p-2572912.html" target="_blank">tar.gz文件 </a> <br/><a href="mingforyou-p-2635884.html" target="_blank">Ruby Symbol </a> <br/><a href="mingforyou-p-2611912.html" target="_blank">Ruby表达式 </a> <br/><a href="mingforyou-p-2575854.html" target="_blank">Linux相关命令 </a> <br/><a href="mingforyou-p-2637181.html" target="_blank">Ruby file </a> <br/><a href="mingforyou-p-2574786.html" target="_blank">Tomcat优化 </a> <br/><a href="mingforyou-p-2566081.html" target="_blank">修改Linux文件的所属用户和组 </a> <br/><a href="mingforyou-p-2635918.html" target="_blank">Ruby String </a> <br/><a href="mingforyou-p-2635756.html" target="_blank">Ruby Range </a> <br/><a href="likwo-p-2982121.html" target="_blank">HTML5开源专业图像处理引擎——AlloyImage(简称AI) </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="cy163-p-1573976.html" target="_blank">servlet 中文乱码 </a> <br/><a href="cy163-p-1571053.html" target="_blank">log4j配置日志系统成功 (转) </a> <br/><a href="cy163-p-1577812.html" target="_blank">DevC++ 下 需要把MySQL 的 libmySQL.dll转变为libmySQL.a </a> <br/><a href="cy163-p-1574393.html" target="_blank">SOLR 中 Schema.xml 的filedType 的一些属性的理解 </a> <br/><a href="cy163-p-1572848.html" target="_blank">Solr 和 Drupal 很不错的个人网站 如何批量删除 </a> <br/><a href="cy163-p-1574421.html" target="_blank">[Solr]中 对 Schema.xml 完整模板 及 解释 </a> <br/><a href="cy163-p-1577721.html" target="_blank">Windows下 使用 MySQL的参考例子 </a> <br/><a href="cy163-p-1577815.html" target="_blank">静态链接库LIB和动态链接库DLL的区别 (devc libmySQL.lib、libmySQL.dll) </a> <br/><a href="cy163-p-1573957.html" target="_blank">Servlet 乱码问题 </a> <br/><a href="mingforyou-p-2646783.html" target="_blank">html div </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="mingforyou-p-2653898.html" target="_blank">Ruby uuidtools </a> <br/><a href="mingforyou-p-2611936.html" target="_blank">Ruby运算符 </a> <br/><a href="mingforyou-p-2615213.html" target="_blank">Ruby 数组 </a> <br/><a href="mingforyou-p-2614760.html" target="_blank">Ruby中发现的一些规则 </a> <br/><a href="mingforyou-p-2635771.html" target="_blank">Ruby Hash </a> <br/><a href="mingforyou-p-2634563.html" target="_blank">Ruby 控制台解释执行相关命令 </a> <br/><a href="mingforyou-p-2555045.html" target="_blank">linux 新建用户、用户组 以及为新用户分配权限 </a> <br/><a href="mingforyou-p-2628005.html" target="_blank">JS Documemt createElement </a> <br/><a href="mingforyou-p-2590152.html" target="_blank">查看Linux的内存 </a> <br/><a href="mingforyou-p-2633215.html" target="_blank">Ruby环境的安装与配置 </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>