Advertisement
Guest User

Untitled

a guest
Feb 8th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. [root@localhost kolla-openstack]# docker logs bootstrap_mariadb
  2. INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
  3. INFO:__main__:Validating config file
  4. INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
  5. INFO:__main__:Copying service configuration files
  6. INFO:__main__:Deleting /etc//my.cnf
  7. INFO:__main__:Copying /var/lib/kolla/config_files/galera.cnf to /etc//my.cnf
  8. INFO:__main__:Setting permission for /etc//my.cnf
  9. INFO:__main__:Copying /var/lib/kolla/config_files/wsrep-notify.sh to /usr/local/bin/wsrep-notify.sh
  10. INFO:__main__:Setting permission for /usr/local/bin/wsrep-notify.sh
  11. INFO:__main__:Writing out command to execute
  12. INFO:__main__:Setting permission for /var/lib/mysql
  13. Installing MariaDB/MySQL system tables in '/var/lib/mysql/' ...
  14. 180208 12:56:48 [Note] /usr/sbin/mysqld (mysqld 10.0.34-MariaDB-wsrep) starting as process 31 ...
  15. OK
  16. Filling help tables...
  17. 180208 12:56:53 [Note] /usr/sbin/mysqld (mysqld 10.0.34-MariaDB-wsrep) starting as process 59 ...
  18. OK
  19.  
  20. To start mysqld at boot time you have to copy
  21. support-files/mysql.server to the right place for your system
  22.  
  23. PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
  24. To do so, start the server, then issue the following commands:
  25.  
  26. '/usr/bin/mysqladmin' -u root password 'new-password'
  27. '/usr/bin/mysqladmin' -u root -h localhost.localdomain password 'new-password'
  28.  
  29. Alternatively you can run:
  30. '/usr/bin/mysql_secure_installation'
  31.  
  32. which will also give you the option of removing the test
  33. databases and anonymous user created by default. This is
  34. strongly recommended for production servers.
  35.  
  36. See the MariaDB Knowledgebase at http://mariadb.com/kb or the
  37. MySQL manual for more instructions.
  38.  
  39. You can start the MariaDB daemon with:
  40. cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql/'
  41.  
  42. You can test the MariaDB daemon with mysql-test-run.pl
  43. cd '/usr/mysql-test' ; perl mysql-test-run.pl
  44.  
  45. Please report any problems at http://mariadb.org/jira
  46.  
  47. The latest information about MariaDB is available at http://mariadb.org/.
  48. You can find additional information about the MySQL part at:
  49. http://dev.mysql.com
  50. Consider joining MariaDB's strong and vibrant community:
  51. https://mariadb.org/get-involved/
  52.  
  53. 180208 12:56:57 mysqld_safe Logging to '/var/log/kolla/mariadb/mariadb.log'.
  54. 180208 12:56:57 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql/
  55. spawn mysql_secure_installation
  56.  
  57. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  58. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  59.  
  60. In order to log into MariaDB to secure it, we'll need the current
  61. password for the root user. If you've just installed MariaDB, and
  62. you haven't set the root password yet, the password will be blank,
  63. so you should just press enter here.
  64.  
  65. Enter current password for root (enter for none):
  66. OK, successfully used password, moving on...
  67.  
  68. Setting the root password ensures that nobody can log into the MariaDB
  69. root user without the proper authorisation.
  70.  
  71. Set root password? [Y/n] y
  72. New password:
  73. Re-enter new password:
  74. Password updated successfully!
  75. Reloading privilege tables..
  76. ... Success!
  77.  
  78.  
  79. By default, a MariaDB installation has an anonymous user, allowing anyone
  80. to log into MariaDB without having to have a user account created for
  81. them. This is intended only for testing, and to make the installation
  82. go a bit smoother. You should remove them before moving into a
  83. production environment.
  84.  
  85. Remove anonymous users? [Y/n] y
  86. ... Success!
  87.  
  88. Normally, root should only be allowed to connect from 'localhost'. This
  89. ensures that someone cannot guess at the root password from the network.
  90.  
  91. Disallow root login remotely? [Y/n] n
  92. ... skipping.
  93.  
  94. By default, MariaDB comes with a database named 'test' that anyone can
  95. access. This is also intended only for testing, and should be removed
  96. before moving into a production environment.
  97.  
  98. Remove test database and access to it? [Y/n] y
  99. - Dropping test database...
  100. ... Success!
  101. - Removing privileges on test database...
  102. ... Success!
  103.  
  104. Reloading the privilege tables will ensure that all changes made so far
  105. will take effect immediately.
  106.  
  107. Reload privilege tables now? [Y/n] y
  108. ... Success!
  109.  
  110. Cleaning up...
  111.  
  112. All done! If you've completed all of the above steps, your MariaDB
  113. installation should now be secure.
  114.  
  115. Thanks for using MariaDB!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement