|
|
|
从入门到精通 MYsql数据库学习使用心得http://www.sina.com.cn 2008年06月12日 09:36 新浪科技
1、access简单易学,适合于小型数据库的建设,数据库的容量大概1G左右。 MYSQL、SQL SERVER等适合于中型数据库的建设。 ORACLE适用于大型数据库。 2、RDBMS:关系数据库管理系统的英文缩写。 3、数据库中的数据集组织为表。每个表由行和列组成。表中每行为一个记录。记录可包含几段信息;表中每一列对应这些信息中的一段。 4、SQL(Structured Query Language)是当今的标准数据库语言,所有主要的数据库系统都使用它。举例:create table company ( name char(30), num int, address char(30) ) 5、 MySQL的体系结构术语:客户机/服务器,通常的客户机程序有mysql、mysqlimport、mysqldump 1、取得样历数据库及其表的权限 grant all on samp-db.* to paul@localhost identified by "secret" grant all on samp-db.* to paul@% identified by "secret" 2、MYSQL指的是整个MYSQLRDBMS,而mysql代表的是一个特定的客户机程序名。 3、激活mysql程序和登陆:C:>mysql options;mysql _h host_name _u user_name _p 4、建立用户名:set user=paul 5、登陆成功: mysql _u paul _p enter password:****** welcome to the MySQL monitor. Commands end with ; or \g. your MySQL connection id is 1805 to server version:3.ss.25.log Type 'help' for help. mysql> 6、结束会话:mysql>quit bye 7、发布查询 mysql>select now(), _>user(), _>version() _>;
【发表评论 】
不支持Flash
|