mysql-5.6.16-1 rpmインストール

ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/ ここから適当に探そう

MySQL-5.6.16-1 これにした

wget -q ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-client-5.6.16-1.el6.x86_64.rpm \ ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.16-1.el6.x86_64.rpm \ ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-devel-5.6.16-1.el6.x86_64.rpm \ ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-server-5.6.16-1.el6.x86_64.rpm \ ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-shared-5.6.16-1.el6.x86_64.rpm

yum install -y MySQL-{client,devel,server,shared-compat}-5.6.16-1.el6.x86_64.rpm

yum install -y MySQL-shared-5.6.16-1.el6.x86_64.rpm

[root@localhost tmp]# service mysql start Starting MySQL. SUCCESS! [root@localhost tmp]# cat /root/.mysql_secret

The random password set for the root user at Wed Mar 5 01:10:43 2014 (local time): lYXMHVev

[root@localhost tmp]# mysql -u root -plYXMHVev Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.16

Copyright (c) 2000, 2014, 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>

mysql> SET PASSWORD FOR root@localhost=PASSWORD('hoge'); Query OK, 0 rows affected (0.00 sec)

mysql> exit Bye

自動起動 [root@localhost ~]# chkconfig mysql on mysqldじゃなかった

リストアもかいとく?

mysql -u root -p < dump.sql

簡単