mariadb

1.下载 https://downloads.mariadb.org/mariadb/10.5.3/

2.解压后cmd执行 mysql_install_db.exe --datadir=D:\db --service=Mariadb --password=123456

3.修改my.ini配置

[mysqld]
datadir=C:/soft/mariadb-10.5.3-winx64/data
character-set-server=utf8
port=6666
[client]
plugin-dir=C:/soft/mariadb-10.5.3-winx64/lib/plugin
port=6666

 4.修改密码

set password for root@localhost = password(‘新密码‘); 

5.支持root用户允许远程连接mysql数据库
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant option;
flush privileges;

mariadb

上一篇:C# linq group by 异常 -----MySqlException: Unknown column 'GroupBy1.K1' in 'field list'


下一篇:Sharding-JDBC 执行原理