| 您的当前位置:首页 --> MYSQL教程 --> mysql 5.7.14 安装配置简单教程 |
| MYSQL教程 mysql 5.7.14 安装配置简单教程 |
| 浏览次数:759 关键词 ( ) |
| 查看使用该CPU的产品 查看CPU天梯 |
| CPU型号:mysql 5.7.14 安装配置简单教程 |
| 主频:Ghz |
| 睿频:Ghz |
| 核心数:个 |
| 不支持超核心 |
| 制作工艺: |
| 插槽类型: |
| 功耗:0W |
| L3缓存:0MB |
| 支持最大内存: 0GB |
| CPU详细参数 |
|
记录mysql5.7.14安装与配置过程,梳理成文,希望对大家有所帮助。 1.配置文档: ####################配置文件开始################### # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [client] default-character-set=utf8 [mysqld] port=3306 basedir ="D:\mysql-5.7.14-winx64" datadir ="D:\mysql-5.7.14-winx64/data/" tmpdir ="D:\mysql-5.7.14-winx64/data/" socket ="D:\mysql-5.7.14-winx64/data/mysql.sock" log-error="D:\mysql-5.7.14-winx64/data/mysql_error.log" #server_id = 2 #skip-locking max_connections=100 table_open_cache=256 query_cache_size=1M tmp_table_size=32M thread_cache_size=8 innodb_data_home_dir="D:\mysql-5.7.14-winx64/data/" innodb_flush_log_at_trx_commit =1 innodb_log_buffer_size=128M innodb_buffer_pool_size=128M innodb_log_file_size=10M innodb_thread_concurrency=16 innodb-autoextend-increment=1000 join_buffer_size = 128M sort_buffer_size = 32M read_rnd_buffer_size = 32M max_allowed_packet = 32M explicit_defaults_for_timestamp=true sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" skip-grant-tables #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES ####################配置文件结束################### 2. 添加环境变量 3.启动服务 net start mysql 问题解决:删除data文件夹里的内容
4.登录Access denied for user 'root'@'localhost' (using password: NO)问题解决 ----2.进入mysql数据库:mysql> use mysql;Database changed ----3.输入update mysql.user set authentication_string=password('root') where user='root' ; 重复的原因是因为跟5.7以前的输入方式不同。 ----4.编辑my.ini文件删掉skip-grant-tables 这一行,然后重启MySQL,否则MySQL仍能免密码登录。 4.mysql error You must reset your password using ALTER USER statement before executing this statement.或者Your password has expired. To log in you must change it using a client that supports expired passwords.
5、设置编码问题(原文来自:设置MYSQL数据库编码为UTF-8) show variables like ‘%character%'; show variables like'%collation%'; 2)、如果不是以上情况,需要将mysql编码设置为utf-8。具体步骤如下: 如果没有该程序,需要手动修改mysql编码。 2>、 重新启动MySql服务 3>、 查看设置结果 如果仍有编码不是utf8的,请检查配置文件,也可使用mysql命令设置: set character_set_client = utf8; 另外:建立数据库时可以使用以下命令: create database app_relation character set utf8; use app_relation; source app_relation.sql; 修改数据库编码的命令为:alter database app_relation character set utf8; 以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持80vps。 精彩专题分享:mysql不同版本安装教程 mysql5.7各版本安装教程 |
| 下一个产品 SQL计算timestamp的差值的方法 上一个产品 ubuntu kylin 14.10下多个mysql 5.7.14安装教程 |