Commands to start the MySQL service in Linux

Source: Internet
Author: User

Restarting the Linux server with the reboot command causes the MySQL service to terminate, which means that the MySQL service is not started. The MySQL service must be restarted or the database MySQL error will be reported when you start JBoss.

The command is as follows:

Step one: Install MySQL and set the installation path for MySQL:

mysql_install_db--user=mysql--datadir=/home/ems/tmp/mysql/data

Command description: The above db-user=mysql, is my MySQL username is mysql,--datadir=/home/ems/tmp/mysql/data equals to the right of the database is the storage path.

Step Two:

Mysqld_safe--datadir=/home/ems/tmp/mysql/data--pid-file=/home/ems/tmp/mysql/asbams_dev85-85.pid--socket=/home/ Ems/tmp/mysql/mysql.sock--bind-address=135.252.247.85--port=3306 &

Command description: asbams_dev85-85 in Data--pid-file=asbams_dev85-85.pid is (hostname-host port number meaning) that is asbams_dev85 is host 85 is the port number.

Commands to start the MySQL service in Linux

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.