English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Instalación de mysql mediante el modo no install en Windows 5.7.5 m15 winx64(Recomendado)

下载解压不说

我解压在:E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64

添加配置文件E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64\my.ini

####################配置文件开始###################
[client]
default-character-set=utf8
[mysqld]
port=3306
basedir ="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64"
datadir ="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64/data/"
tmpdir ="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64/data/"
socket ="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64/data/mysql.sock"
log-error="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64/data/mysql_error.log"
#skip-conceder-tablas =1
#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="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-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"
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
####################End of configuration file###################

The zip package does not contain the data directory, so you need to initialize it: mysqld --initialize

Then perform service registration: E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64\bin>mysqld install MySQL --defaults-file="E:\DBFiles\mysql-5.7.15-winx64\mysql-5.7.15-winx64\my.ini"

Prompt that the installation is successful

After the service is successfully registered, start the MySQL service, the MySQL service can start successfully, and when you log in with the root user, it prompts to enter the password, at this time, the root password has not been set yet

Stop the service, add a skip in my.ini-conceder-tablas =1The configuration allows skipping the password, after modification, restart the MySQL service, and the root user can log in normally

After logging in, change the password using the method alter user root identified by 'root'

Advertencia: The MySQL server is running with the --salir-conceder-opción de tablas para que no pueda ejecutar esta declaración

Luego, según lo que se encuentra en línea, se puede modificar con éxito utilizando: update user set authentication_string=PASSWORD('root') where User='root';

Through the method of update user set authentication_string=password('root') where user='root' to change the password, it prompts that the operation is successful

Después de modificar la contraseña, elimine la configuración de skip configurada anteriormente-conceder-tablas =1,inicie sesión con el usuario root y la contraseña configurada recientemente root, no hay problema,

Pero cuando usé el comando use mysql para cambiar de datos, volvió a advertirme que debía modificar la contraseña?

Luego ejecuté: alter user 'root'@'localhost' identified by 'root';

Por fin está bien

Luego, utilizando la herramienta de administración HeidiSQL, se puede conectar normalmente:

Cuando se modificó la contraseña en el medio, se usó: alter user 'root'@'localhost' identified by 'root';

Advertencia: The MySQL server is running with the --salir-conceder-opción de tablas para que no pueda ejecutar esta declaración

Luego, según lo que se encuentra en línea, se puede modificar con éxito utilizando: update user set authentication_string=PASSWORD('root') where User='root';

Pero al reiniciar, se nos pidió que modificáramos la contraseña, se usó: alter user 'root'@'localhost' identified by 'root'; de esta manera se completó la modificación de la contraseña de root.

Anteriormente, siempre se ha instalado paso a paso, esta vez se ha instalado mysql mediante la manera de desinstalar, debido a que es un repetido prueba, se encontraron muchos problemas en el medio, se arrastró tres veces antes de que tuviera éxito.

Lo que se mencionó anteriormente es lo que el editor les ha presentado sobre la instalación de mysql de manera no instalada en Windows 5.7.5 m15 winx64Todas las descripciones anteriores, espero que sean útiles para todos, si tienen alguna pregunta, no dudes en dejarme un mensaje, el editor responderá a todos a tiempo, y también agradezco mucho el apoyo de todos a la página web de呐喊教程!

Te gustará