Mysql数据库学习心得(2)

来源:互联网 发布:数码暴龙网络侦探v字头 编辑:程序博客网 时间:2024/05/14 19:29
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

 

(二)在Windows2000下的安装

  1。安装时选默认目录:c:Mysql

  2。把c:Mysqlmy-example.cnf copy为c:my.cnf,并把c:Mysqlibgwinb19.dll copy到winntsystem32。

  3。启动Mysql的方法是:

    c:MysqlinMysqld-shareware --install

    net start Mysql

  这么简单,就可以启动了。

  4。更改超级用户(root)的密码:

    C:MysqlinMysql Mysql

    Mysql> UPDATE user SET password=PASSWORD('your password')swheresuser='root';

    Mysql> QUIT

    C:MysqlinMysqladmin reload

    使用命令C:MysqlinMysqlshow去看看检测一下。在这里应该显示:

    +-----------+

    | Databases |

    +-----------+

    | Mysql |

    | test |

    +-----------+

    看到这些信息这一步就证明没问题了

    再来:

    C:MysqlinMysqlshow --user=root --password=your password Mysql

    在这里应该显示:

    Database: Mysql

    +--------------+

    | Tables |

    +--------------+

    | columns_priv |

    | db |

    | host |

    | tables_priv |

    | user |

    +--------------+

    一切搞定!

  5。C:MysqlinMysqladmin version status proc

  应该可以看到这些版本信息的:

   Mysqladmin Ver 8.0 Distrib 3.22.32, for Win95/Win98 on i586

   TCX Datakonsult AB, by Monty

   Server version 3.22.32-shareware-debug

   Protocol version 10

   Connection localhost via TCP/IP

   TCP port 3306

   Uptime: 1 hour 29 min 30 sec

   Threads: 1 Questions: 72 Slow queries: 0 Opens: 16 Flush tables: 1 Open tables: 0 Memory in use: 16423K Max memory      used: 16490K

   Uptime: 5370 Threads: 1 Questions: 72 Slow queries: 0 Opens: 16 Flush tables: 1 Open tables: 0 Memory in use: 16423K     Max memory used: 16490K

    +----+------+-----------+----+---------+------+-------+------------------+

    | Id | User | Host | db | Command | Time | State | Info |

    +----+------+-----------+----+---------+------+-------+------------------+

    | 35 | ODBC | localhost | | Query | 0 | | show processlist |

    +----+------+-----------+----+---------+------+-------+------------------+

  接着,用show databases命令可以将安装的数据库列出来:

    Mysql> show databases;

  你就可以看到:

    +----------+

    | Database |

    +----------+

    | Mysql |

    | test |

    +----------+

    2 rows in set (0.00 sec)

  如果一切正常的话,那说明Mysql可以完全工作了!如果要退出程序,输入:exit

    Mysql> exit;

    Bye

 <script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 骑自行车左右扭怎么办 面试不想去了怎么办 面试电话没接到怎么办 上班时间接到猎头电话怎么办 win8电脑软件打不开怎么办 忘记申报个税怎么办 辞职后考研档案怎么办 私企辞职后档案怎么办 工人档案丢了怎么办 事业单位试用期考核不合格怎么办 工厂不好招人怎么办 办理入职手续怎么办 管理员工不加班怎么办 没有毕业证怎么办入职 不想加班的员工怎么办 邮寄辞职信拒收怎么办 办理退休档案不见了怎么办 办理退休没有档案怎么办 办理退休没有个人档案怎么办 档案被学校丢失怎么办 手动挡汽车脱档怎么办 辞职工作没人交接怎么办 ipad反复重启怎么办 ipad老是重启怎么办 苹果8死机了怎么办 平板突然死机了怎么办 平板卡死机了怎么办 小米ipad死机了怎么办 ipad死机了黑屏怎么办 小米4死机了怎么办 小米平板黑屏是怎么办? ipad死机怎么办不能关机 ipad突然死机了怎么办 京东买ipad坏了怎么办 ipad开机键失灵怎么办 苹果手机按键坏了怎么办 ipad使用中黑屏怎么办 苹果下不可软件怎么办 大学毕业想要当演员怎么办 郑州东站怎么办临时身份证 因招工年龄大造小档桉怎么办