标签:min report date star end form war bbs repo
原文:https://www.bbsmax.com/A/6pdDE6rLzw/
9步骤的日志如下
Installing MariaDB/MySQL system tables in ‘./data‘ ...
2017-11-27 16:43:13 139861016680192 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table ‘mysql.gtid_slave_pos‘ doesn‘t exist
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:
‘./bin/mysqladmin‘ -u root password ‘new-password‘
‘./bin/mysqladmin‘ -u root -h xxxxxx(阿里云实例id) password ‘new-password‘
Alternatively you can run:
‘./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 ‘.‘ ; ./bin/mysqld_safe --datadir=‘./data‘
You can test the MariaDB daemon with mysql-test-run.pl
cd ‘./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/
14步骤报错日志:
[root@iz2ze9hcysthc28l5tgqrpz init.d]# service mysqld start
Starting MySQL.171127 16:59:01 mysqld_safe Logging to ‘/opt/mariadb/data/(实例id).err‘.
171127 16:59:01 mysqld_safe Starting mysqld daemon with databases from /opt/mariadb/data
[FAILED]
[root@iz2ze9hcysthc28l5tgqrpz init.d]# tail -300f /opt/(实例id).err
171127 16:59:01 mysqld_safe Starting mysqld daemon with databases from /opt/mariadb/data
2017-11-27 16:59:02 140540362131264 [Note] /opt/mariadb/bin/mysqld (mysqld 10.2.7-MariaDB-log) starting as process 2611 ...
2017-11-27 16:59:02 140540362131264 [ERROR] mysqld: File ‘./mysql-bin.index‘ not found (Errcode: 13 "Permission denied")
2017-11-27 16:59:02 140540362131264 [ERROR] Aborting
14步解决方案
chgrp -R mysql /opt/mariadb/data && chown -R mysql /opt/mariadb/data
18:无法远程连接,原因是因为防火墙,开启指定服务:
# firewall-cmd --permanent --add-service=mysql
# firewall-cmd --reload
标签:min report date star end form war bbs repo
原文地址:http://www.cnblogs.com/zhonghuahero/p/7904878.html