Linux installation Jdk,mysql

Source: Internet
Author: User
Tags mysql client

Vim/etc/profile

The bottom

#jdk

java_home=/usr/local/jdk1.8;

PATH = $PATH: $JAVA _home/bin;

Export Java_home PATH

: Wq

Source/etc/profile let environment variables take effect

Install MySQL:

Rpm-qa | grep mysql* See if MySQL is installed

Yum install MySQL installation mysql client

Installing the MySQL server

Yum Install Mysql-server

Yum Install Mysql-devel

Start MySQL:

Service mysqld Start

To see if it starts: Ps-aux | grep mysql*

To create a root administrator:

Mysqladmin-u Root Password fei417524333

Login: Mysql-u root-p fei417524333

show databases;

Use MySQL;

Show tables;

Select Host,user,password from user;

Remote connection:

1:inset into User (Host,user,password) values ('% ', ' root ', password (' root '));

Open firewall

Vim/etc/sysconfig/iptables

Yyp 22 Copy 22, then change to 3306:wq

Restart Firewall: serivce iptables restart

Restart MySQL service mysqld restart

Authorized Super Admin: Grant all privileges on * * to ' root ' @ '% ';

Set the database character set:

VIM/ETC/MY.CNF Join (do not add to the last)

Default-character-set=utf8

Default-storage-engine=innodb

Configure MySQL boot from boot

Vim/etc/rc.d/rc.local

Linux installation Jdk,mysql

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.