English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
下载解压不说
我解压在: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-grant-tables=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 ####################Configuration file ends###################
The zip package does not contain the data directory, it needs to be initialized: 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 installation successful
After the service is successfully registered, start the MySQL service, the MySQL service can be successfully started, and a prompt for password input is required when logging in with the root user, at this time, the root password has not been set
Stop the service, add a 'skip' in my.ini-grant-tables=1configuration allows skipping the password, after the change, restart the MySQL service, and the root user can log in normally
The password is changed after logging in, using the method 'alter user root identified by 'root''
Hinweis: Der MySQL-Server läuft mit dem --skip-grant-tables-Option, sodass es dieses Statement nicht ausführen kann
Dann kann man, wie im Internet empfohlen, mit: update user set authentication_string=PASSWORD('root') where User='root'; erfolgreich ändern
The password is changed by using the method 'update user set authentication_string=password('root') where user ='root' and the prompt shows successful
Nachdem das Passwort geändert wurde, entfernen Sie die obige Konfiguration von skip-grant-tables=1,mit dem Benutzer root und dem刚才设置的密码root anmelden, kein Problem,
Doch als ich auf mysql umgeschaltet habe, wurde mir erneut darauf hingewiesen, das Passwort zu ändern?
Dann habe ich ausgeführt: alter user 'root'@'localhost' identified by 'root';
Endlich ist alles in Ordnung
Dann kann man mit dem HeidiSQL-Verwaltungstool normal verbinden:
Beim Ändern des Passworts wurde verwendet: alter user 'root'@'localhost' identified by 'root';
Hinweis: Der MySQL-Server läuft mit dem --skip-grant-tables-Option, sodass es dieses Statement nicht ausführen kann
Dann kann man, wie im Internet empfohlen, mit: update user set authentication_string=PASSWORD('root') where User='root'; erfolgreich ändern
Doch beim Neustart wurde erneut aufgefordert, das Passwort zu ändern, verwendet wurde: alter user 'root'@'localhost' identified by 'root'; So wurde das Passwort des Benutzers root geändert.
Bisher wurden die Installationen Schritt für Schritt durchgeführt,这次通过uninstall的方式安装mysql,由于是反复测试,中间遇到了不少问题,折腾可三遍才成功。
Hier ist eine Anleitung, wie man mysql unter Windows mit der noinstall-Methode installiert 5.7.5 m15 winx64Die folgenden Beschreibungen hoffen, dass sie Ihnen helfen. Wenn Sie irgendwelche Fragen haben, lassen Sie mir bitte eine Nachricht hinterlassen, der Herausgeber wird rechtzeitig antworten. Vielen Dank auch für die Unterstützung der呐喊教程网站!