Mysql: Occurs when you execute a source SQL script: Error 2

Source: Internet
Author: User

Deploying MySQL under CentOS:

1, yum-y install mysql*;

2, service mysqld start;

3, Chkconfig mysqld on;

4. Set user name and password: mysqladmin-uroot password123456

5, enter the database: Mysql-uroot-p Enter the password after entering the set

6. Establish database: Create database name;

7. Switch to the database you want to use

8, import the written sql:source absolute path/xx.sql;

At this point, if the following error occurs:

Mysql> Source/opt/openfire/database/openfire_mysql.sql;
ERROR:
Failed to open file '/opt/openfire/database/openfire_mysql.sql ', error:2

The error means that the file was not found

How to Troubleshoot:

1, there are files, however, do not have permission to execute

2, there are documents, the path is not correct

3. No documents

Mysql: Occurs when you execute a source SQL script: Error 2

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.