CentOS 6.5上安装MariaDB(3)

This is a brief description of the upgrade process.  Important details
can be found in the MariaDB manual, in the Upgrading section.
******************************************************************
error: %pre(MariaDB-server-5.5.36-1.el6.x86_64) scriptlet failed, exit status 1
error:  install: %pre scriptlet failed (2), skipping MariaDB-server-5.5.36-1.el6
  Installing : MariaDB-client-5.5.36-1.el6.x86_64                                                            4/7
  Erasing    : mysql-5.1.71-1.el6.x86_64                                                                      5/7
  Erasing    : mysql-libs-5.1.71-1.el6.x86_64                                                                6/7
  Verifying  : MariaDB-common-5.5.36-1.el6.x86_64                                                            1/7
  Verifying  : MariaDB-compat-5.5.36-1.el6.x86_64                                                            2/7
  Verifying  : MariaDB-client-5.5.36-1.el6.x86_64                                                            3/7
  Verifying  : mysql-libs-5.1.71-1.el6.x86_64                                                                4/7
  Verifying  : MariaDB-server-5.5.36-1.el6.x86_64                                                            5/7
mysql-server-5.1.71-1.el6.x86_64 was supposed to be removed but is not!
  Verifying  : mysql-server-5.1.71-1.el6.x86_64                                                              6/7
  Verifying  : mysql-5.1.71-1.el6.x86_64                                                                      7/7

Installed:
  MariaDB-client.x86_64 0:5.5.36-1.el6                    MariaDB-compat.x86_64 0:5.5.36-1.el6                 

Dependency Installed:
  MariaDB-common.x86_64 0:5.5.36-1.el6                                                                           

Replaced:
  mysql.x86_64 0:5.1.71-1.el6                          mysql-libs.x86_64 0:5.1.71-1.el6                         

Failed:
  MariaDB-server.x86_64 0:5.5.36-1.el6                    mysql-server.x86_64 0:5.1.71-1.el6                   

Complete!

3、启动MariaDB

# /etc/init.d/mysqld start
Initializing MySQL database:  WARNING: The host 'Cloud-Q2' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
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 MySQL 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 Cloud-Q2 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 manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

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

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/b11d66e138dea6a34c22f6444a12706f.html