MySQL failed to create database

Source: Internet
Author: User

If you log in to the database by using the root account, error is raised:

Mysql:1006-can ' t CREATE database ' * * * ' (ERRNO:13)
Or

Mysql:1006-can ' t CREATE database ' * * * ' (errno:28)

, which is generally a problem with MySQL users without directory permissions.

Start with the Linux command: LS-LD View the Data directory permissions, the file is the folder

Ls-ld/alidata/server/mysql-5.5.37/data

If displayed:

Drwxr-xr-x 6 root root 4096 Dec 08:57/alidata/server/mysql-5.5.37/data

The MySQL user does not have permission to operate and needs to be authorized with the Chown directive:


Chown-r Mysql:mysql/alidata/server/mysql-5.5.37/data


This article is from the "Blue Leaf Sheep" blog, please be sure to keep this source http://dellinger.blog.51cto.com/12445009/1930767

MySQL failed to create database

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.