Installation MariaDB5.5 on RHEL6(二)
riaDB/MySQL system tables in '/data/mariadb5.5' ...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:
'/service/mariadb5.5/bin/mysqladmin' -u root password 'new-password'
'/service/mariadb5.5/bin/mysqladmin' -u root -h 192.168.1.9 password 'new-password'
Alternatively you can run:
'/service/mariadb5.5/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 MariaDB Knowledgebase at http://kb.askmonty.org or the
MySQL manual for more instructions.
You can start the MariaDB daemon with:
cd '/service/mariadb5.5' ; /service/mariadb5.5/bin/mysqld_safe --datadir='/data/mariadb5.5'
You can test the MariaDB daemon with mysql-test-run.pl
cd '/service/mariadb5.5/mysql-test' ; perl mysql-test-run.pl
Please report any problems with the '/service/mariadb5.5/scripts/mysqlbug' script!
The latest information about MariaDB is available at http://mariadb.org/.
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@montyprogram.com.
Alternatively consider joining our community based development effort:
http://kb.askmonty.org/en/contributing-to-the-mariadb-project/
[root@test ~]# /service/mariadb5.5/bin/mysqld_safe --defaults-file=/service/mariadb5.5/my.cnf --basedir=/service/mariadb5.5 --datadir=/data/mariadb5.5 --user=mysql &
[1] 19871
[root@test ~]# 131101 22:58:50 mysqld_safe Logging to '/data/mariadb5.5/test.err'.
131101 22:58:50 mysqld_safe Starting mysqld daemon with databases from /data/mariadb5.5
[root@test ~]# /service/mariadb5.5/bin/mysqladmin -uroot password
New password:
Confirm new password:
[root@test ~]#
[root@test ~]#
[root@test ~]# /service/mariadb5.5/bin/mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@test ~]# /service/mariadb5.5/bin/mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 5.5.33a-MariaDB-log ZWC-MariaDB
Copyright (c) 2000, 2013,
Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> delete from mysql.user where password='';
Query OK, 5 rows affected (0.03 sec)
MariaDB [(none)]> delete from mysql.db where user='';
Query OK, 2 rows affected (0.04 sec)
MariaDB [(none)]> select @@version;
+---------------------+
| @@version |
+---------------------+
| 5.5.33a-MariaDB-log |
+---------------------+
1 row in set (0.00 sec)
MariaDB [(none)]> show engines;
+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+-------------------------