MYSQL常用操作指令_MySQL
bitsCN.com
MYSQL常用操作指令 最近到研究PHP跟MYSQL的开发环境搭配,测试过WIN2003+iis6.0 x86操作系统下比较好的软件php5forIIS6v2.0.exe主要包括php5.25 + mysql5.045 + zend3.3a + phpmyadmin 3.3.0等软件。
WIN2008+iis7.0 x64位系统下比较好用的软件是去www.iis.net网站里面去下PHP Manager for IIS 7 http://phpmanager.codeplex.com/ 非常好用。 搭配好环境之后总结了MYSQL常用的操作指令如下: MYSQL 系统环境变量变量名MYSQL_HOME变量值C:/php5/MySQL545变量名Path变量值C:/php5/MySQL545/bin; MYSQL 常用操作指令--转换到MYSQL目录cd C:/php5/MySQL545/bin --安装MYSQL服务命令C:/php5/MySQL545/bin>mysqld-nt --install --删除MYSQL服务命令C:/php5/MySQL545/bin>mysqld-nt --remove --启动MYSQL服务命令C:/php5/MySQL545/bin>net start mysql --登录mysql数据库C:/php5/MySQL545/bin>mysql -u root -h localhost -pEnter password: 输入root用户的旧密码后回车 --更改root用户密码为新密码C:/php5/MySQL545/bin>mysqladmin -u root -p password 新密码Enter password: 输入root用户的旧密码 --测试用新密码登录mysql数据库C:/php5/MySQL545/bin>mysql -u root -h localhost -pEnter password: 输入root用户的新密码 --新建数据库mysql> CREATE DATABASE 数据库名;Query OK, 1 row affected (0.03 sec) --授权访问数据库mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER ON 数据库名.* TO 数据库名@localhost IDENTIFIED BY '新密码';Query OK, 0 rows affected (0.17 sec) --授权访问数据库mysql> SET PASSWORD FOR '数据库名'@'localhost' = OLD_PASSWORD('新密码');Query OK, 0 rows affected (0.03 sec) --查询数据库字符编码mysql>show variables like 'char%';mysql>show variables like 'collation_%';mysql>show variables like 'character_set_%'; --更换数据库mysql>use 数据库名; --从文件创建所有数据表mysql>SOURCE c:/createtable.sql; --从文件导入所有数据表数据mysql>SOURCE c:/tabledata.sql; --删除数据库mysql> drop databse 数据库名; --退出mysql数据库C:/php5/MySQL545/bin>exit;
bitsCN.com

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



CrystalDiskMark is a small HDD benchmark tool for hard drives that quickly measures sequential and random read/write speeds. Next, let the editor introduce CrystalDiskMark to you and how to use crystaldiskmark~ 1. Introduction to CrystalDiskMark CrystalDiskMark is a widely used disk performance testing tool used to evaluate the read and write speed and performance of mechanical hard drives and solid-state drives (SSD). Random I/O performance. It is a free Windows application and provides a user-friendly interface and various test modes to evaluate different aspects of hard drive performance and is widely used in hardware reviews

CrystalDiskInfo is a software used to check computer hardware devices. In this software, we can check our own computer hardware, such as reading speed, transmission mode, interface, etc.! So in addition to these functions, how to use CrystalDiskInfo and what exactly is CrystalDiskInfo? Let me sort it out for you! 1. The Origin of CrystalDiskInfo As one of the three major components of a computer host, a solid-state drive is the storage medium of a computer and is responsible for computer data storage. A good solid-state drive can speed up file reading and affect consumer experience. When consumers receive new devices, they can use third-party software or other SSDs to

This AI-assisted programming tool has unearthed a large number of useful AI-assisted programming tools in this stage of rapid AI development. AI-assisted programming tools can improve development efficiency, improve code quality, and reduce bug rates. They are important assistants in the modern software development process. Today Dayao will share with you 4 AI-assisted programming tools (and all support C# language). I hope it will be helpful to everyone. https://github.com/YSGStudyHards/DotNetGuide1.GitHubCopilotGitHubCopilot is an AI coding assistant that helps you write code faster and with less effort, so you can focus more on problem solving and collaboration. Git

When we use the Edge browser, sometimes incompatible software attempts to be loaded together, so what is going on? Let this site carefully introduce to users how to solve the problem of trying to load incompatible software with Edge. How to solve an incompatible software trying to load with Edge Solution 1: Search IE in the start menu and access it directly with IE. Solution 2: Note: Modifying the registry may cause system failure, so operate with caution. Modify registry parameters. 1. Enter regedit during operation. 2. Find the path\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Micros

On March 3, 2022, less than a month after the birth of the world's first AI programmer Devin, the NLP team of Princeton University developed an open source AI programmer SWE-agent. It leverages the GPT-4 model to automatically resolve issues in GitHub repositories. SWE-agent's performance on the SWE-bench test set is similar to Devin, taking an average of 93 seconds and solving 12.29% of the problems. By interacting with a dedicated terminal, SWE-agent can open and search file contents, use automatic syntax checking, edit specific lines, and write and execute tests. (Note: The above content is a slight adjustment of the original content, but the key information in the original text is retained and does not exceed the specified word limit.) SWE-A

Go language development mobile application tutorial As the mobile application market continues to boom, more and more developers are beginning to explore how to use Go language to develop mobile applications. As a simple and efficient programming language, Go language has also shown strong potential in mobile application development. This article will introduce in detail how to use Go language to develop mobile applications, and attach specific code examples to help readers get started quickly and start developing their own mobile applications. 1. Preparation Before starting, we need to prepare the development environment and tools. head

PhotoshopCS is the abbreviation of Photoshop Creative Suite. It is a software produced by Adobe and is widely used in graphic design and image processing. As a novice learning PS, let me explain to you today what software photoshopcs5 is and how to use photoshopcs5. 1. What software is photoshop cs5? Adobe Photoshop CS5 Extended is ideal for professionals in film, video and multimedia fields, graphic and web designers who use 3D and animation, and professionals in engineering and scientific fields. Render a 3D image and merge it into a 2D composite image. Edit videos easily

CorelDRAW software is a vector graphics production tool software produced by Corel. It is mainly used for vector graphics, page design and image editing. Next, let the editor introduce to you what software coreldraw is? How to download the official free version of cdr2022! 1. What software is coreldraw? The origin of CorelDRAW. The full name of CorelDRAW software is CorelDRAW. It is a graphic design software for producing vector graphics. CorelDRAWX4 has been updated and optimized in text format, new interactive tables and page layer functions. CorelDRAWX4 supports online service integration and collaboration. As a graphic image tool and vector drawing software, it
