| 网站首页 | JAVA文章 | AppServers | Web开发 | 应用开发 | 资源下载 |
    想学好编程,外语很重要,最新的编程技术还是在国外  [enadd  2006年12月25日]        
设为首页 加入收藏 联系站长
您现在的位置: 编程笔记网 >> 数据库 >> mysql >> 使用技巧 >> 文章正文
mysql授课大纲            【字体:
mysql授课大纲
作者:不详    文章来源:网络    点击数:    更新时间:2007-1-21
格式文件.frm描述表的结构
数据文件.isd或.myd包含表的数据
索引文件.isd或.myi索引文件

5关闭数据库
chu888#./sql/Index.html'>mysqladminshutdown

6备份数据库
chu888#sql/Index.html'>mysqldumpsamp_db>/usr/tmp/samp_db.2002

7恢复数据库
chu888#sql/Index.html'>mysqldumpsamp_db</usr/tmp/samp_db.2002

8修改数据库的密码
chu888#./sql/Index.html'>mysqladmin-uroot-ppassword123456
chu888#./sql/Index.html'>mysql-hlocalhost-uroot-p
Enterpassword:
WelcometotheMySQLmonitor.Commandsendwith;or\g.
YourMySQLconnectionidis2toserverversion:3.23.47

Typehelp;or\hforhelp.Type\ctoclearthebuffer.

sql/Index.html'>mysql>

sql/Index.html'>mysql的最基本使用
chu888#./sql/Index.html'>mysql-uroot-p
Enterpassword:
WelcometotheMySQLmonitor.Commandsendwith;or\g.
YourMySQLconnectionidis6toserverversion:3.23.47

Typehelp;or\hforhelp.Type\ctoclearthebuffer.

sql/Index.html'>mysql>showdatabases;
+----------+
|Database|
+----------+
|sql/Index.html'>mysql|
|test|
+----------+
2rowsinset(0.00sec)

sql/Index.html'>mysql>createdatabasechu888;
QueryOK,1rowaffected(0.01sec)

sql/Index.html'>mysql>usechu888;
Databasechanged
sql/Index.html'>mysql>selectnow(),user(),version();
+---------------------+----------------+-----------+
|now()|user()|version()|
+---------------------+----------------+-----------+
|2003-06-1906:13:58|root@localhost|3.23.47

上一页  [1] [2] [3] [4] 下一页  

文章录入:enadd    责任编辑:enadd 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
  • MySQL数据的导出和导入工具:…

  • mysql技巧总结

  • PPTP + MPPE + RADIUS + MyS…

  • 使用函数递归实现基于php和M…

  • 基于MySQL的高性能数据库应用…

  • Mysql日期和时间函数

  • 深圳讯天 mysql 服务器错误分…

  • 几分钟让你走进mysql的门

  • 针对 Apache 2.x 的 MySQL 用…

  • 在同一台机器上运行多个MySQ…

  •   网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 管理登录 |