来源:www.cncfan.com | 2006-3-20 | (有4306人读过)
(二)在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
|