Mysql实例mysql5.7.18解压版启动mysql服务
《Mysql实例mysql5.7.18解压版启动mysql服务》要点: MYSQL入门mysql5.7.18解压版启动mysql服务,具体内容如下 MYSQL入门1.下载mysql社区版 MYSQL入门2.解压到D:Program Files MYSQL入门3.在D:Program Filesmysql-5.7.18-winx64bin下,新建文件my.ini,内容如下: MYSQL入门
[client]
port=3306
default-character-set=utf8
[mysqld]
bind-address = 127.0.0.1
port=3306
character_set_server=utf8
basedir ="D:Program Filesmysql-5.7.18-winx64"
datadir ="D:Program Filesmysql-5.7.18-winx64data"
tmpdir ="D:Program Filesmysql-5.7.18-winx64data"
socket ="D:Program Filesmysql-5.7.18-winx64datamysql.sock"
log-error="D:Program Filesmysql-5.7.18-winx64datamysql_error.log"
max_connections=100
table_open_cache=256
query_cache_size=1M
tmp_table_size=32M
thread_cache_size=8
innodb_data_home_dir="D:Program Filesmysql-5.7.18-winx64data"
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"
MYSQL入门4.配置C:WINDOWSsystem32driversetchosts,默认是注释掉的,去掉注释: MYSQL入门
127.0.0.1 localhost
MYSQL入门5.在D:Program Filesmysql-5.7.18-winx64目录下新建data文件夹,必须为空. MYSQL入门6.打开cmd,cd到D:Program Filesmysql-5.7.18-winx64bin,执行如下命令 MYSQL入门
mysqld --initialize-insecure
mysqld -install
MYSQL入门7.启动mysql服务,如果没有启动的话.net start mysql. MYSQL入门8.在cmd中,使用命令mysql -u root -p,回车进入mysql>命令提示符. MYSQL入门9.修改root暗码 MYSQL入门
mysql> set password=password('123456');
MYSQL入门以上就是本文的全部内容,希望对大家的学习有所赞助,也希望大家多多支持编程之家PHP. 欢迎参与《Mysql实例mysql5.7.18解压版启动mysql服务》讨论,分享您的想法,编程之家 52php.cn为您提供专业教程。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |