MariaDB 在 Windows 下 noinstall 版本的安装和使用

liusoft 2010-05-13 12:49:58
此方法同样也适用于 MySQL 的 noinstall 版本。

详细步骤如下:

1. 下载并解压 noinstall 压缩包,假设解压到 D:\MariaDB 目录

下载地址(5.1.44b):llarian.net

2. 创建配置文件 my.ini (D:\MariaDB\my.ini)
这个文件可直接从 D:\MariaDB 目录下的 my-xxx.ini 随便复制一个过来改动,只需要增加几个配置项即可,分别是:

[mysql]
default-character-set=utf8

[mysqld]
basedir=D:\\MariaDB
datadir=D:\\MariaDB\\data
default-character-set=utf8

3. 第一次启动 MariaDB

在 D:\MariaDB\bin 目录下运行 mysqld --console 以控制台模式启动数据库服务器,此步骤将会在 data 目录创建数据文件和日志文件

4. 将 MariaDB 安装为 Windows 服务

同样在 D:\MariaDB\bin 目录下运行 mysqld --install 则会创建名为 MySQL 的 Windows 服务,如果你已经装有 MySQL 则会提示服务名已存在,那么可以用 mysqld --install MariaDB 来创建名为 MariaDB 的服务,也可以使用其他服务名。

创建完的服务并没有启动,并且启动类型设置为自动启动。

5. 启动后的 MariaDB 默认有一个 root 用户,访问密码为空。

修改密码方法:mysqladmin -u root password "新密码"
...全文
200 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
iihero_ 2010-05-13
  • 打赏
  • 举报
回复
MarialDB本就是MySQL的一个新的分支,自从Sun收购继而被Oracle纳入后,Mysql创始人重新创立了这一分支,估计代码也没什么变化,加了几个引擎而已。
ACMAIN_CHM 2010-05-13
  • 打赏
  • 举报
回复
MariaDB 是什么?
看楼上好象就是 MySQL unzip 版的手工配置啊。
懒得去死 2010-05-13
  • 打赏
  • 举报
回复
好样的。
ACMAIN_CHM 2010-05-13
  • 打赏
  • 举报
回复
http://askmonty.org/wiki/MariaDB

out 了

[Quote]
MariaDB 5.1 is based on MySQL 5.1 and is available under the terms of the GPL v2 license.

MariaDB will be kept up to date with the latest MySQL release from the same branch.

In most respects MariaDB will work exactly as MySQL: all commands, interfaces, libraries and APIs that exist in MySQL also exist in MariaDB.

Currently the main differences between MariaDB 5.1 and MySQL 5.1 are:

Maria storage engine is included
PBXT storage engine is included
XtraDB storage engine is included
FederatedX storage engine is included
Faster complex queries
Pool of Threads
Fewer warnings and bugs
Speed improvements
Extensions (More index parts, new startup options etc)
Better testing of features
Table elimination
Slow Query Log Extended Statistics
Croatian collations for Unicode
In MariaDB 5.2, the new features are:

Group commit for the Maria storage engine. (faster)
userstatv2', which creates several new information_schema tables with useful statistics information. You enable the statistics by setting the 'userstat' variable.
[/Quote]

56,677

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧