mysql配置教程8.0
MySQL安装完成后,会自动配置为名称叫做:mysqld的服务,可以被systemctl所管理,我们在进行系统的配置时,主要修改root密码和允许root远程登录。# 通过grep命令,在/var/l...
2024.11.07下载zip版本
建立data目录
生成my.ini文件
[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:\\alantop_dir\\alantop_sde\\mysql-8.0.34-winx64"datadir ="D:\\alantop_dir\\alantop_sde\\mysql-8.0.34-winx64\\Data"port = 3306# server_id = ..... # 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 #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES character-set-server = utf8mb4# 创建新表时将使用的默认存储引擎default-storage-engine=INNODB performance_schema_max_table_instances = 600table_definition_cache = 400table_open_cache = 256innodb_strict_mode=0sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION [mysql]default-character-set = utf8mb4 [client]port=3306default-character-set = utf8mb4
初始化mysql
mysqld --initialize --console
键入命令后,控制台会有mysql的初始化密码
启动mysql服务
mysqld --console
MySQL安装完成后,会自动配置为名称叫做:mysqld的服务,可以被systemctl所管理,我们在进行系统的配置时,主要修改root密码和允许root远程登录。# 通过grep命令,在/var/l...
2024.11.07安装教程1.官网下载免费版(https://dev.mysql.com/downloads/file/?id=492455)2.将下载好的zip文件解压缩至相应目录,并配置环境变量(将*\bin添加进...
2024.11.06什么是mysqlmysql是一款关系型数据库,支持千万级数据的存储和查询,而且是开源免费的,是很多创业公司的优选。关系型数据库一般用来存储结构化数据。结构化数据是高度组织和整齐格式化的数据。一般特点是...
2024.11.15以下的权限和root一样权限创建用户create user ‘用户‘@‘主机IP‘ identified by ‘密码’主机名可以localhost 远程访问可以授权或者设为%create user ...
2024.11.15MySQL下载官网下载地址:https://dev.mysql.com/downloads/installer/下载界面截图如下所示:如果需要下载历史版本,点击蓝色方框那里即可。历史版本的下载截图如下...
2024.11.13