CentOS7安装MariaDB服务无法启动的问题 - CSDN博客 http://blog.csdn.net/u013412790/article/details/51713149
mysql之mysql安装、初始化,以及mysql相关命令的使用 - 小私的blog - 51CTO技术博客 http://ggvylf.blog.51cto.com/784661/1680973
yum -y install mariadb-server
Installed:
mariadb-server.x86_64 1:5.5.56-2.el7
Dependency Installed:
libaio.x86_64 0:0.3.109-13.el7 mariadb.x86_64 1:5.5.56-2.el7
perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7
perl-DBD-MySQL.x86_64 0:4.023-5.el7 perl-DBI.x86_64 0:1.627-4.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-IO-Compress.noarch 0:2.061-2.el7
perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7
Dependency Updated:
mariadb-libs.x86_64 1:5.5.56-2.el7
Complete!
mysql mysqld_safe_helper mysql_secure_installation
mysqlaccess mysqldump mysql_setpermission
mysqladmin mysqldumpslow mysqlshow
mysqlbinlog mysql_find_rows mysqlslap
mysqlbug mysql_fix_extensions mysqltest
mysqlcheck mysqlhotcopy mysql_tzinfo_to_sql
mysql_convert_table_format mysqlimport mysql_upgrade
mysqld_multi mysql_install_db mysql_waitpid
mysqld_safe mysql_plugin mysql_zap
[root@aftree /usr/java/jdk1.8.0_152]# mysql_install_db
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
171023 12:20:56 [Note] /usr/libexec/mysqld (mysqld 5.5.56-MariaDB) starting as process 22452 ...
OK
Filling help tables...
171023 12:20:57 [Note] /usr/libexec/mysqld (mysqld 5.5.56-MariaDB) starting as process 22461 ...
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:
'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h aftree.6oo0.com 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 MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.
You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl
Please report any problems at http://mariadb.org/jira
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
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
网友评论