Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92801
  • 博文数量: 15
  • 博客积分: 1013
  • 博客等级: 准尉
  • 技术积分: 167
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-02 18:24
文章分类
文章存档

2010年(11)

2009年(4)

分类: Mysql/postgreSQL

2010-05-18 14:59:36

MySQL >> MariaDB

mysql 前途未卜, 但开源的精神不会被大 Oracle 大嘴独吞
drizzle.org

装个测试环境捣鼓MariaDB

科大的CentOS映像:


卸载mysql-client
#rpm -e dovecot
#rpm -e mysql-5.0.77

从这里下MariaDB:




wget -r


[root@localhost rpms]# ls
index.html
index.html?C=D;O=A
index.html?C=M;O=A
index.html?C=N;O=D
index.html?C=S;O=A
MariaDB-client-5.1.44b-78.el5.i386.rpm
MariaDB-debuginfo-5.1.44b-78.el5.i386.rpm
MariaDB-devel-5.1.44b-78.el5.i386.rpm
MariaDB-server-5.1.44b-78.el5.i386.rpm
MariaDB-shared-5.1.44b-78.el5.i386.rpm
MariaDB-test-5.1.44b-78.el5.i386.rpm

[root@localhost rpms]# rpm -ivh MariaDB-*
Preparing...                ########################################### [100%]
   1:MariaDB-shared         ########################################### [ 17%]
   2:MariaDB-client         ########################################### [ 33%]
   3:MariaDB-debuginfo      ########################################### [ 50%]
   4:MariaDB-devel          ########################################### [ 67%]
   5:MariaDB-server         ########################################### [ 83%]
100518 22:06:17 [Note] PrimeBase XT (PBXT) Engine 1.0.09g RC loaded...
100518 22:06:17 [Note] Paul McCullagh, PrimeBase Technologies GmbH,
100518 22:06:17 [Note] PrimeBase XT Engine shutdown...
100518 22:06:17 [Note] PrimeBase XT (PBXT) Engine 1.0.09g RC loaded...
100518 22:06:17 [Note] Paul McCullagh, PrimeBase Technologies GmbH,
100518 22:06:18 [Note] PrimeBase XT Engine shutdown...

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MySQL manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MariaDB is available at
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from
Monty Program Ab. You can contact us about this at sales@askmonty.org.
Alternatively consider joining our community based development effort:
http://askmonty.org/wiki/index.php/MariaDB#How_can_I_participate_in_the_development_of_MariaDB.3F

Starting MySQL..[  OK  ]
Giving mysqld 2 seconds to start
   6:MariaDB-test           ########################################### [100%]
[root@localhost rpms]#

[root@localhost ~]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 18
Server version: 5.1.44b-MariaDB-mariadb78 (MariaDB - )

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+------------------------------+
| Database                     |
+------------------------------+
| information_schema           |
| client_test_db               |
| mysql                        |
| mysqltest_user_test_database |
| test                         |
+------------------------------+
5 rows in set (0.01 sec)

MariaDB [(none)]>



阅读(1877) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

puer_tea2010-05-18 15:46:11

默认安装后还有个 mysqltest_pw 用户 , 密码是password; [root@localhost ~]# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 27 Server version: 5.1.44b-MariaDB-mariadb78 (MariaDB - http://mariadb.com/) Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show databases; +------------------------------+ | Database | +------------------------------+ | information_schema | | cli