How to install and configure mysql-5.7.5-m15-winx64 under win7 64 bit It's been a while since I last installed MySQL. These steps may be forgotten. Just record it briefly. (Refer to some blogs on the Internet.) 1.mysql-5.7.5-m15-winx64.zip download Official website download address: http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.5-m15-winx64.zip 2. Unzip to D:\MySqlDataBase 3. Create a new my.ini configuration file under D:\MySqlDataBase\mysql-5.7.5-m15-winx64 The content is as follows: #####################Configuration file begins################### # 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 installation, and will be replaced if you # *** upgrade to a newer version of MySQL. [client] default-character-set=utf8 [mysqld] port=3306 basedir = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/" datadir = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" tmpdir = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/" socket = "D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/mysql.sock" log-error="D:\MySqlDataBase\mysql-5.7.5-m15-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:\MySqlDataBase\mysql-5.7.5-m15-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 key point is the following configuration, where the directory name of datadir must be: D:\MySqlDataBase\mysql-5.7.5-m15-winx64/data/. 4. Add the following to the Windows system environment variable path : D:\mysql\mysql-5.7.5-m15-winx64\bin; (note the semicolon) 5. Register MySQL as a Windows system service The specific operation is to execute the following command in the command line (the command line needs to be run as an administrator): You need to switch to the bin directory, otherwise the service directory will be specified as C:\Program Files\MySQL\MySQL Server 5.7\mysqld Add service command: mysqld install MySQL --defaults-file="D:\mysql\mysql-5.7.5-m15-winx64\my.ini" The command to remove the service is: mysqld remove 6. After step 5 is successful, open the system service management You can see the mysql system service The command to start mysql in the command line is: net start mysql The command to shut down mysql is: net stop mysql 7. Change the root password to wenthink Command line execution: mysql –uroot mysql>show databases; mysql>use mysql; mysql> UPDATE user SET password=PASSWORD('wenthink') WHERE user='root'; mysql> FLUSH PRIVILEGES; mysql> QUIT Remote login configuration Allow the root user to log in remotely from anywhere and have any operation permissions for all libraries. The specific operations are as follows: 1) Log in to MySQL as root user on this machine: Command line execution: mysql -u root -p Enter the password (the password set in step 7): wenthink 2) Perform authorization operations: mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION; Reload the authorization table: mysql> FLUSH PRIVILEGES; Exit mysql: quit The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Telnet is moved to busybox-extras in Alpine image
>>: Vue+element+oss realizes front-end fragment upload and breakpoint resume
First of all, I don't know why I can't lo...
To beautify the table, you can set different bord...
How to check the file system type of a partition ...
Table of contents Preface 1. Usage examples 2. Im...
1. What is a two-column layout? There are two typ...
Table of contents Learning about WITH queries in ...
First, let’s take a look at a CSS carousel animat...
Table of contents 1. Implicit conversion Conversi...
Many friends have asked in forums and message are...
Since the problem occurred rather suddenly and th...
1. float+overflow:hidden This method mainly trigg...
1.MySQL UPDATE JOIN syntax In MySQL, you can use ...
Replication is to transfer the DDL and DML operat...
In Linux C/C++, thread-level operations are usual...
Some time ago, the project needed to develop the ...