|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||||||||
2013年06月29日(土) 旧暦 [n年日記] [更新:"2013/06/29 20:33:04"]#1 [pkgsrc] msql-server-5.5.32m08@makoto 20:16:59/130629(..packages/All)% pkg_info -D mysql-server Information for mysql-server-5.5.32: Install notice: =========================================================================== $NetBSD: MESSAGE,v 1.1.1.1 2011/04/25 21:12:13 adam Exp $ After the tables are set up and the MySQL server is running, please remember to set a password for the MySQL root user! This is done by running both: /usr/pkg/bin/mysqladmin -u root -p password 'new-password' /usr/pkg/bin/mysqladmin -h `hostname` -u root -p password 'new-password' The "Enter password:" prompt is asking for the existing password. As there is no existing password, just press the Return key. There is a script distributed with MySQL that can help you lock down an installation. This script has been installed to /usr/pkg/bin/mysql_secure_installation. Please see the manual and the MySQL web site for more instructions. ===========================================================================m08@makoto 20:18:32/130629(..packages/All)% sudo cp -p /usr/pkg/share/examples/rc.d/mysqld /etc/rc.d/ m08@makoto 20:18:45/130629(..packages/All)% sudo /etc/rc.d/mysqld onestart Initializing MySQL database system tables. 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/pkg/bin/mysqladmin -u root password 'new-password' /usr/pkg/bin/mysqladmin -u root -h m08 password 'new-password' Alternatively you can run: /usr/pkg/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/pkg ; /usr/pkg/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /usr/pkg/mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/pkg/bin/mysqlbug script! Starting mysqld. m08@makoto 20:22:27/130629(..packages/All)% 130629 20:22:27 mysqld_safe Logging to '/var/mysql/m08.err'. 130629 20:22:27 mysqld_safe Starting mysqld daemon with databases from /var/mysqlm08@makoto 20:23:53/130629(~)% /usr/pkg/bin/mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL!m08@makoto 20:32:16/130629(~)% mysql -u root mysql -p Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.5.32 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show tables; +---------------------------+ | Tables_in_mysql | +---------------------------+ | columns_priv | | db | | event | | func | | general_log | | help_category | | help_keyword | | help_relation | | help_topic | | host | | ndb_binlog_index | | plugin | | proc | | procs_priv | | proxies_priv | | servers | | slow_log | | tables_priv | | time_zone | | time_zone_leap_second | | time_zone_name | | time_zone_transition | | time_zone_transition_type | | user | +---------------------------+ 24 rows in set (0.00 sec) mysql> ( つっこみ )
|
最近の日記 2024年07月03日 ・kicad oddity 2024年05月08日 ・comparison on ./buildsh tools 2024年05月06日 ・py-setuptools (python 3.11.9) ・make release took 1 hours and 10 min ・qemu invocation for 10.99.10 2024年05月05日 ・Windows 10 version ・serial connection ・bc bench 2024年05月04日 ・Trial on 10.99.10 ・another version (later trial) to succeed | ||