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:
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:
Look for/data/mariadb, change this address to your current data store directory address, and then save
5. Start MySQL:
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.