How multiple MySQL databases are assigned to multiple different file directories

Source: Internet
Author: User
How multiple MySQL databases are assigned to multiple different file directories
How multiple MySQL databases are assigned to multiple different file directories

I installed the Phpnow environment
The default database is placed in the D:\phpnow\MySQL-5.0.90\data\
I want to use Baidu Cloud database synchronization, Baidu Cloud directory in D:\yun\
I want d:\phpnow\mysql-5.0.90\data\hello.* (Hello database) to be transferred to d:\yun\db\hello.*.
Other databases (there are many databases I don't want to sync) or in the original directory
How do I set up to use PHP to access the transferred Hello database normally?

Share to:


------Solution--------------------
No, you can't.
Designated DataDir can only achieve the purpose of the overall relocation
------Solution--------------------
Reference:
How multiple MySQL databases are assigned to multiple different file directories

I installed the Phpnow environment
The default database is placed in the D:\phpnow\MySQL-5.0.90\data\
I want to use Baidu Cloud database synchronization, Baidu Cloud directory in D:\yun\
I want d:\phpnow\mysql-5.0.90\data\hello.* (Hello database) to be transferred to d:\yun\db\hello.*.
Other databases (there are many databases I don't want to sync) or in the original directory
How do I set up to use PHP to access the transferred Hello database normally?

Build multiple MySQL instances, just to open multiple ports.
  • 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.