MYSQL完全入门(Windows版)_MySQL
bitsCN.com
一、MySQL简介
MySQL是一个小巧灵珑的数据库服务器软件,对于中、小型应用系统是非常理想的。除了支持标准的ANSI SQL语句外,最重要的是,它还支持多种平台,而在Unix/Linux系统上,MySQL支持多线程运行方式,从而能获得相当好的性能。它和前两个软件一样,是属于开放源代码软。
二、MySQL的安装(指Windows版本)
将下载后的文件解压,到一个目录,运行Setup程序,会提示整个安装的过程。它默认安装到c:mysql下,如果要安装到其它目录下还有改动一些东西,作为初学者,可以先不管,以默认的目录安装。好了,安装后,进入c:mysqlin目录下,运行mysqld-shareware.exe文件
在Win98下直接运行,正常情况下,没有什么提示信息
在NT下可以输入:mysqld-shareware --install 启动该服务
接着,输入mysql ,正常情况下会出现几行提示信息并出现下提示符号:
mysql>
到此,你已经成功安装了MySQL。
三、设置MySQL用户密码
MySQL数据库的默认用户名为“root”(MS SQL Server 的 sa 相似),密码默认为空。在DOS提示符(注意,不是mysql提示符)下输入
c:mysqlin>“mysqladmin -u root -p password adminpassword
回车后会提示你输入原来的密码,由于原来密码为空,直接回车,root用户的密码便改为“adminpassword”了。
四、简单使用MySQL数据库
1.显示MySQL的数据库(注意:在该文的以后部分,如果没有提示,输入的命令都是在mysql提示符下)
show databases
2.打开一个数据库
use test
其中,test为数据库名称
3.显示一个数据库中所有数据表 (必须先打开一个数据库)
show tables
go
4.以root身份创建一个数据库(在DOS提示符号下)
mysqladmin -u root -p password adminpassword create gsbook
接着会提示你输入密码。因为,我们的目的是做一个留言板,我在这里将数据库的名称命名为“gsbook”。
5.在数据库中加入数据表
create table gsbook(id int not null auto_increment,primary key(id),nickname varchar(30),email varchar(30),homepage varchar(30),note text,w_time datetime)

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



VS Code can run on Windows 8, but the experience may not be great. First make sure the system has been updated to the latest patch, then download the VS Code installation package that matches the system architecture and install it as prompted. After installation, be aware that some extensions may be incompatible with Windows 8 and need to look for alternative extensions or use newer Windows systems in a virtual machine. Install the necessary extensions to check whether they work properly. Although VS Code is feasible on Windows 8, it is recommended to upgrade to a newer Windows system for a better development experience and security.

VS Code system requirements: Operating system: Windows 10 and above, macOS 10.12 and above, Linux distribution processor: minimum 1.6 GHz, recommended 2.0 GHz and above memory: minimum 512 MB, recommended 4 GB and above storage space: minimum 250 MB, recommended 1 GB and above other requirements: stable network connection, Xorg/Wayland (Linux)

The reasons for the installation of VS Code extensions may be: network instability, insufficient permissions, system compatibility issues, VS Code version is too old, antivirus software or firewall interference. By checking network connections, permissions, log files, updating VS Code, disabling security software, and restarting VS Code or computers, you can gradually troubleshoot and resolve issues.

VS Code is available on Mac. It has powerful extensions, Git integration, terminal and debugger, and also offers a wealth of setup options. However, for particularly large projects or highly professional development, VS Code may have performance or functional limitations.

VS Code is the full name Visual Studio Code, which is a free and open source cross-platform code editor and development environment developed by Microsoft. It supports a wide range of programming languages and provides syntax highlighting, code automatic completion, code snippets and smart prompts to improve development efficiency. Through a rich extension ecosystem, users can add extensions to specific needs and languages, such as debuggers, code formatting tools, and Git integrations. VS Code also includes an intuitive debugger that helps quickly find and resolve bugs in your code.

VS Code To switch Chinese mode: Open the settings interface (Windows/Linux: Ctrl, macOS: Cmd,) Search for "Editor: Language" settings Select "Chinese" in the drop-down menu Save settings and restart VS Code

Although Notepad cannot run Java code directly, it can be achieved by using other tools: using the command line compiler (javac) to generate a bytecode file (filename.class). Use the Java interpreter (java) to interpret bytecode, execute the code, and output the result.

The main uses of Linux include: 1. Server operating system, 2. Embedded system, 3. Desktop operating system, 4. Development and testing environment. Linux excels in these areas, providing stability, security and efficient development tools.
