--MySQL数据库--(一)了解MySQL、安装MySQL、配置MySQL、常见的安装错误。
来源:互联网 发布:网络购物用英语怎么说 编辑:程序博客网 时间:2024/05/08 02:27
一、了解MySQL
- MySQL是一个开源的关系型数据库管理系统
- MySQL分为社区版和企业版
手册下载:http://pan.baidu.com/s/1eSmPFfO 百度云盘
二、下载方式
三、安装MySQL
第七步,直接Finsh,完成安装。不用配置,因为等使用的时候再配置。
三、配置方法
MySQL目录结构
启动/关闭MySQL服务
net start mysql停止MySQL服务
net stop mysql
MySQL登录各种参数操作
- MySQL登录
- mysql > exit;
- mysql > quit;
- mysql > \q;
修改MySQL提示符
shell>mysql -uroot -proot --prompt 提示符连接上客户端后,通过prompt命令修改
mysql>prompt 提示符参数
MySQL常用命令
mysql +参数
显示当前服务器版本
SELECT VERSION();
显示当前日期时间
SELECT NOW();
显示当前用户
SELECT USER();
MySQL语句的规范
- 关键字与函数名称全部大写。
- 数据库名称、表名称、字段名称全部小写。
- SQL语句必须以分号结尾。
安装My SQL时会出现的问题
在安装MySQL时,出现“The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 1045 Access denied for user 'root'@'localhost' (using password: YES)” 解决办法:
-
在装mysql时,总是到最后启动的时候出错,出错内容如下:
就是最后的Apply security setting过不去
提示:
The security settings could not be applied to the database because the connection has failed with the following error.
Error Nr. 1045
Access denied for user 'root'@'localhost' (using password: YES)
If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no client application can connect to the server. After you have opened the port please press [Retry] to apply the security settings.
If you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. Therefore the old password from your last installation is still needed to connect to the server. In this case please select skip now and re-run the Configuration Wizard from the start menu.
解决方法:
1, 首先卸载MySQL
2, 再根据这个目录 C:\Documents and Settings\All Users\Application Data\MySQL,将mysql删除
3, 重新安装MySQL 就好了(电脑不用重启)
注意:有时候电脑会重复出现mySQL,因为安装错误太多次,电脑会出现好几种mysql的文件保存在C盘,我们只要搜索就行了。要将所有mysql文件和mysql文件夹删除- --MySQL数据库--(一)了解MySQL、安装MySQL、配置MySQL、常见的安装错误。
- 安装MySql的常见错误
- 【数据库之mysql】mysql的安装(一)
- MySQL安装以及常见的安装错误
- 数据库Mysql的安装配置
- mysql数据库的安装配置
- mysql数据库配置安装
- MySQL数据库安装配置
- MYSQL数据库安装配置
- Mysql 安装配置 一
- MySQL数据库(一)---安装、配置、使用
- 【Mysql】MYSQL安装配置
- mysql数据库的安装
- MySql数据库的安装
- mysql数据库的安装
- mysql数据库的安装
- MySQL数据库的安装
- mysql数据库的安装
- RabbitMQ的Java应用(3) -- 使用spring-boot-starter-amqp开发生产者应用
- iOS钥匙串
- 第四天(GenericServlet类)
- Python学习,Day1
- linux 查看文件内容以及按照某条记录集合显示
- --MySQL数据库--(一)了解MySQL、安装MySQL、配置MySQL、常见的安装错误。
- iOS ● 非常全的三方库、插件、大牛博客等等
- zip4j加密压缩、解压缩文件、文件夹
- SpringMVC同时使用<mvc:resources … />和日期转换Formatter时出现问题的解决方法
- Java对象锁和类锁全面解析(多线程synchronized关键字)
- IE8支持background-size
- java异常 java.lang.NoClassDefFoundError: Ljavax/transaction/TransactionManager
- Android手持系统PDA打印小票
- 详解C++编程中类的声明和对象成员的引用