|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我先解释一下我的学习思路。
(二)在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
理解动态语言的概念,运做机制,熟悉PHP语法 |
|