首先运行c:/mysql/bin/winmysqladmin.exe
假设MySQL安装在C盘这是一个MySQL管理与状态指示程序,
它会自动将MySQL注册为NT的服务,并启动MySQL服务然后在命令提示符下输入
C:\>cd mysql\bin
C:\MYSQL\BIN>mysql -u root
你的屏幕会显示Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.4-beta-max-nt-logType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql>现在你就可以进行建表了,use test;
CREATE TABEL test (id TINYINT (3) UNSIGNED );
建议使用 MySQL-Front 图形客户端来学习MySQL
我想新建一个库,该如何做?此外更正一下,您的table写错了;:)
Create DataBase YouDB;
USE YouDB;
Create Table ....
MySQL-Front_2.52.5 版的下载地址:
http://www.sstienemann.de/mysqlfront/MySQL-Front_2.5_Setup.exeSQL循序渐进
http://surpass.swpi.edu.cn/article/SQLst.zip
把你的建表语句存放于.txt or .sql文件中,把该文件存放在
c:\mysql\bin下,然后
c:\mysql\bin\mysql -u root dbname<file.txt