MYSQL/MARIADB the cause of startup failure caused by the progress bar status at startup and the solution _mariadb

Source: Internet
Author: User

Open the site today suddenly found that the Web site can not open, and later through the SSH landing server found MARIADB database did not start successfully, restart or can not be successfully started, has been in the starting progress bar, the progress bar after the end of the prompt error. The following error occurred while viewing the log:

Innodb:unable to lock/ibdata1, error:11

After debugging, it was found that the partition of the MARIADB database is full, causing it to fail to start.

Only move the MARIADB database to a separate partition with a larger disk share or delete some unnecessary files from the current assignment.

Move Method:

1. Shut down MySQL server:

/etc/init.d/mysql stop

2. The following new directory takes/data/mysql/as an example, and then copies the database of the old directory to the new directory:

Cp-r/data/mariadb/home/mariadb

3. Assign the new directory to the MySQL user group:

Chown Mysql:mysql-r/home/mariadb/

4. Modify the configuration file again:

Vi/etc/my.cnf

Look for/data/mariadb, change this address to your current data store directory address, and then save

5. Start MySQL:

/etc/init.d/mysql start

The above is the article to share the MYSQL/MARIADB start when the progress bar status causes the startup failure and the solution, hope everybody likes.

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.