Deploy the Java Web Project Step 2: Install MySQL.
Software version
- MySQL: Click to download MySQL-5.6.27-1.el6.i686.rpm-bundle.tar access password 8e57
1. Transfer files
rz
2. Unzip the file
[root@localhost ~]# tar -xvf MySQL-5.6.27-1.el6.i686.rpm-bundle.tar
3. Installation files
[root@localhost home]# rpm -ivh MySQL-server-5.6.27-1.el6.i686.rpm // partial output A random root password has been set. You will find it in '/root/.mysql_secret'. New default config file was created as /usr/my.cnf
4. For the first login, the default password is in the file '/root/.mysql_secret' outputted above.
[root@localhost home]# mysql -h127.0.0.1 -uroot -p
5. Change the password
[root@localhost home]# mysqladmin -uroot -p password 123456 Enter password: Warning: Using a password on the command line interface can be insecure.
6. After the MySQL service is installed, you can install MySQL-client-5.6.27-1.el6.i686.rpm and MySQL-devel-5.6.27-1.el6.i686.rpm.
7. Execute the sql script file
mysql> source /home/mysql.sql;