[mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin
# These are commonly set, remove the # and set as required. basedir = "D:\mysql-5.7.16-winx64/" datadir = "D:\mysql-5.7.16-winx64/data/" tmpdir = "D:\mysql-5.7.16-winx64/data/" socket = "D:\mysql-5.7.16-winx64/data/mysql.sock" log-error = "D:\mysql-5.7.16-winx64/data/mysql_error.log" innodb_data_home_dir = "D:\mysql-5.7.16-winx64/data/" port = 3306
# Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. join_buffer_size = 128M sort_buffer_size = 2M read_rnd_buffer_size = 2M
[mysqld] skip_ssl # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. innodb_buffer_pool_size=128M
# Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin
# These are commonly set, remove the # and set as required. basedir=D:\\PortableSoftware\\mysql-8.0.33-winx64 datadir=D:\\PortableSoftware\\mysql-8.0.33-winx64\\data tmpdir=D:\\PortableSoftware\\mysql-8.0.33-winx64\\data socket=D:\\PortableSoftware\\mysql-8.0.33-winx64\\data\\mysql.sock log-error=D:\\PortableSoftware\\mysql-8.0.33-winx64\\data\\mysql_error.log innodb_data_home_dir=D:\\PortableSoftware\\mysql-8.0.33-winx64\\data port=3306
# Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. join_buffer_size=128M sort_buffer_size=2M read_rnd_buffer_size=2M
# mysql5.7 set password = password('root'); # root就是你的新密码 # mysql8 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; # mysql8 django ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '000000'; quit;