Install MYSQL5.5 _ X64

Source: Internet
Author: User

MYSQL5.5 _ X64 installation 1) download the Linux platform of Mysql two installation files, respectively, MySQL-server-5.5.15-1.rhel5.x86_64.rpm and MySQL-client-5.5.15-1.rhel5.x86_64.rpm 2) in the installation file path to install the server side, the command is as follows:

# rpm –ivh MySQL-service-5.5.15-1.rhel5.x86_64.rpm 

 

3) install the client in the path of the installation file. The command is as follows:
# rpm –ivh MySQL-client-5.5.15-1.rhel5.x86_64.rpm

 

4) log on to Mysql. The command syntax is as follows:
mysql [-u username] [-h host] [-p[password]] [dbname] 

 

Username and password are the username and password of MySQL respectively. The initial management account of mysql is root, and there is no password. Note: This root user is not a Linux system user. The default MySQL user is root. Because there is no password at first, you only need to type mysql for the first time.
 [root@test1 local]# mysql

 

A. Import project 1) After logging in to Mysql, import the database file to Mysql and execute the following command:
# source cms.sql

 

2) Place the project file in tomcat/webapps/, access the corresponding host ip address through a browser, add the startup port number (tomcat port number), and check whether the tomcat Management page appears. If yes, the project is started successfully, otherwise, startup fails. Database Address Configuration: modify the configuration information of the jdbc. properties file in the war package: jdbc. url address, as shown below:
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

 


Related Article

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.