锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产一区二区三区福利,青青草手机在线,欧美精品一区在线观看http://www.aygfsteel.com/stuart_wan/category/4588.html鎴戞湁涓澶村皬姣涢┐錛屾垜浠庢潵涔熶笉楠戔︹?/description>zh-cnWed, 28 Feb 2007 07:42:10 GMTWed, 28 Feb 2007 07:42:10 GMT60create user in MySQL 5.0http://www.aygfsteel.com/stuart_wan/archive/2006/03/21/36705.htmlStuartStuartTue, 21 Mar 2006 14:21:00 GMThttp://www.aygfsteel.com/stuart_wan/archive/2006/03/21/36705.htmlhttp://www.aygfsteel.com/stuart_wan/comments/36705.htmlhttp://www.aygfsteel.com/stuart_wan/archive/2006/03/21/36705.html#Feedback0http://www.aygfsteel.com/stuart_wan/comments/commentRss/36705.htmlhttp://www.aygfsteel.com/stuart_wan/services/trackbacks/36705.html
mysql> CREATEUSER聽yy聽IDENTIFIED聽BY'123';

grant:
mysql> GRANTALLPRIVILEGESON*.*TO'user'@'host' [ IDENTIFIED BY'password' ];

flush:
mysql> flush聽privileges;

now u can login with:
$ mysql -u username -p


Stuart 2006-03-21 22:21 鍙戣〃璇勮
]]>
How to connect to a postgresql server from client in Debianhttp://www.aygfsteel.com/stuart_wan/archive/2006/01/19/28653.htmlStuartStuartThu, 19 Jan 2006 06:47:00 GMThttp://www.aygfsteel.com/stuart_wan/archive/2006/01/19/28653.htmlhttp://www.aygfsteel.com/stuart_wan/comments/28653.htmlhttp://www.aygfsteel.com/stuart_wan/archive/2006/01/19/28653.html#Feedback0http://www.aygfsteel.com/stuart_wan/comments/commentRss/28653.htmlhttp://www.aygfsteel.com/stuart_wan/services/trackbacks/28653.html
1. Modifiy the file: /etc/postgresql/8.0/main/pg_hba.conf
    add a line below the "# IPv4 local connections:"
host    all         all         192.168.0.0/24        md5

2. Modify the file: /etc/postgresql/8.0/main/postgresql.conf
    set the Connection Settings like below:
- Connection Settings -

listen_addresses 
= '*'  # what IP interface(s) to listen on;
                                # defaults 
to localhost, '*' = any
port 
= 5432
max_connections 
= 100

3. Restart the postgresql 8.0

4. Now we can connect to postgresql server using clients.
    for eg.
    psql -d DBNAME -U USERNAME -h HOST



Stuart 2006-01-19 14:47 鍙戣〃璇勮
]]>
Postgresql 8.0http://www.aygfsteel.com/stuart_wan/archive/2005/11/08/18749.htmlStuartStuartTue, 08 Nov 2005 05:27:00 GMThttp://www.aygfsteel.com/stuart_wan/archive/2005/11/08/18749.htmlhttp://www.aygfsteel.com/stuart_wan/comments/18749.htmlhttp://www.aygfsteel.com/stuart_wan/archive/2005/11/08/18749.html#Feedback0http://www.aygfsteel.com/stuart_wan/comments/commentRss/18749.htmlhttp://www.aygfsteel.com/stuart_wan/services/trackbacks/18749.html 1. Add an apt soucelist :
deb http://sebastien.lardiere.free.fr/ ./postgresql8-i386/
2. Install the postgres 8.0
$apt-get update
$apt-get install postgresql-8.0
3. Now u can connect to postgres using:(template1 is the database name, postgres is the username)
sudo su postgres psql template1
4. Add a user of ur own:(-W means prompt for password to connect)
$sudo su postgres
$createuser username -W
(decide whether this user can add new user and create database by input y/n to the questions)
$exit
5. Now u can login with ur newly created username and password using:
$psql -U username -h localhost -d dbname
(then u should input the password that u set when u created this user)
6. Configuration File:
/etc/postgresql/8.0/main/pg_hba.conf
7. Postgres commands:
\h --help with SQL commands
\? --help with psql commands
\q --quit
\c dbname --connect to new database
\d{t|i|s|v|S} --list tables/indexes/sequences/views/system tables (add "+" for more detail)
\du --list users
\l --list all databases(add "+" for more detail)


Stuart 2005-11-08 13:27 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 峨山| 鄂尔多斯市| 延安市| 永仁县| 修文县| 南雄市| 漾濞| 苍山县| 武功县| 探索| 晋中市| 惠来县| 德阳市| 阿勒泰市| 武安市| 彰武县| 四子王旗| 枣强县| 太仓市| 图片| 同仁县| 苍梧县| 福安市| 泰兴市| 科尔| 宣威市| 卫辉市| 汾阳市| 余庆县| 什邡市| 乡宁县| 万山特区| 汝州市| 姚安县| 青冈县| 嘉禾县| 灵寿县| 秦皇岛市| 舞钢市| 深圳市| 同心县|