免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1354 | 回复: 0
打印 上一主题 下一主题

Mysql Introduction [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-25 14:17 |只看该作者 |倒序浏览

Introduction to MySQL
By Blair Ireland
Senior Editor, TheScripts.com
Modern day web sites seem to be relying more and more on
    complex database systems. These systems store all of their
    critical data, and allow for easy maintenance in some cases.   
The Structured Query Language (SQL) is a very popular
      database language, and its standardization makes it quite
      easy to store, update and access data. One of the most
      powerful SQL servers out there is called MySQL and
      surprisingly enough, its free.      
Some of the features of MySQL Include:
        Handles large databases, in the area of 50,000,000+ records.
        No memory leaks. Tested with a commercial memory leakage
        detector (purify). A privilege and password system which is very flexible and
        secure, and which allows host-based verification. Passwords are secure since all password traffic when
        connecting to a server is encrypted.        
So how does this benefit you? Well, you can now manage a
          database driven web site for free. Yes, free.         
Even several corporate web sites have started using MySQL,
            just check out
http://www.mysql.com/users.html
and you will
            see what I mean.
For more information about MySQL, check out the web site at
http://www.mysql.com/

Anyway, this multi-part tutorial will be on the various
              basic commands and functions available within MySQL.              
Unless you are sitting in front of your server (which you
                likely aren't), you are going to have to telnet into the
                server. Once you are in, proceed to the directory where you
                can find the MySQL files.
At the prompt type in something along the lines of the
                  following syntax to login
mysql [-h host_name] [-u user_name] [-p your_pass]
                     
Usually you have to ask your web host for a MySQL user name
                        and password, as this is the kind of service you would have
                        to inquire about in the first place.                        
Personally, when I log in to mysql, the first thing is see
                          is:
Welcome to the MySQL monitor. Commands end with ; or \g.
  Your MySQL connection id is XXXX to server version: 3.22.22
  
  Type 'help' for help.
Once you type help, you will see:
MySQL commands:
  help (\h) Display this text
  ? (\h) Synonym for `help'
  clear (\c) Clear command
  connect (\r) Reconnect to the server. Optional arguments are db and host
  edit (\e) Edit command with $EDITOR
  exit (\q) Exit mysql. Same as quit
  go (\g) Send command to mysql server
  ego (\G) Send command to mysql server; Display result vertically
  print (\p) Print current command
  quit (\q) Quit mysql
  rehash (\#) Rebuild completion hash
  status (\s) Get status information from the server
  use (\u) Use another database. Takes database name as argument
  
   These usually help you out when you get lost during your
                                MySQL Adventures.
All commands will be issued from the mysql> prompt from now
                                  on.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/73684/showart_1221303.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP